Image styles refers to the display and crop styles of images uploaded using image fields.

learn more… | top users | synonyms

0
votes
1answer
27 views

Image orientation

I try to fit portrait and landscape images to one size for Drupal 8. When I set image style (scale and crop 280x220) portrait images are automatically rotated. Then I tried to install Image effects ...
0
votes
0answers
23 views

Inside Panelizer, is there a trick to formatting image fields?

Summary In Panelizer, I have created one Panel. In Content for this panel there is an image field. I can find no option to change the image style. From Manage Display in the content type, I am able ...
0
votes
0answers
18 views

Gif animation and responsive image styles are not working

I have a multiple image field and need it to upload images and animated gifs. These images might be resized. When this happens, the animated gif loses its animation. Has anyone solved this problem in ...
0
votes
1answer
17 views

Change image style during hook_node_view()

I'd like to programmatically change an image style during hook_node_view(), and I thought this would be relatively straightforward like so: /** * Implements hook_node_view() */ function ...
0
votes
1answer
22 views

Remove the image style from node--type.tpl.php [duplicate]

Is there a way from a node--'type'.tpl.php template to remove the image style of an image field?
1
vote
0answers
15 views

Drupal site moved causing issues rendering images

I received a source code and DB. The site is in Drupal . I upload the site on IIS and DB(with default charset UTF-8). Now what the problem we are facing is that we are unable to see some of the ...
0
votes
1answer
64 views

Image Styles Broken?

I have a new view that is coming up with a new issue, there is a "main image" for every entry, and for some reason after loading the page, almost all images break. But what's odd is that when you ...
0
votes
0answers
31 views

Gallery Formatter ( jQuery Gallery )not working in some nodes due to 403 error in thumbnail

I'm using Gallery Formatter module in a node type. My problem is that just in some nodes the module seems not to work. The images are loaded, when you click on a thumbnail the main image changes, but ...
1
vote
2answers
10 views

Create image style options, when user is uploading an image

Is there any way to provide image style options, when user is uploading any image and can select any style from the drop down?
0
votes
0answers
25 views

Drupal mysteriously deleting styled image derivatives immediately after they are created causing 404s

I have here a strange problem with a Drush module I have created. The title says it all: when the code is run, the original image is placed fine and as long as it is sort of medium-sized it shows up ...
0
votes
0answers
16 views

Can one set an image style as a percentage of a panel?

I have a site that I set up with the Bear starter kit, and am using panels for my homepage, in the Bear Coat theme. On the homepage is a pane that contains a views slideshow. That views slideshow, in ...
-1
votes
2answers
44 views

Add a class to images in drupal

I have more than thousand images on my site. adding a class to each image manually is very time consuming process is there any way to add the class "adaptive-image" to all images already uploaded ...
0
votes
1answer
67 views

Some images are not displayed in IE [closed]

Some images fails to load on IE. DOM7009: Unable to decode image at URL: '[some unique url]'. The URL are set to sites/default/files/styles/image/image_name.jpg?itok=RANDTOKEN I can fix the error ...
0
votes
0answers
14 views

scale up small uploaded images in drupal 7 imce

I have many image size Thumbnails defined in imce module. whenever a very small image (smaller than any of my thumbnail) is uploaded, imce does not scale up it to make a bigger thumbnail than the ...
0
votes
2answers
32 views

After doing a file_save_upload() how do you resize the images?

I created a custom form in Drupal 7 with the ability to upload an image by using file_save_upload(). The image file has been uploaded and a fid has been assigned to it. How do I render this image into ...
0
votes
1answer
25 views

How do I change the image style for avatars displayed in comments

I'd like to use a custom image style for the comment avatars, but I don't know where the setting in Drupal is to change it. I thought if I changed the user image style at ...
0
votes
0answers
12 views

User:Picture with an image style other than default not showing in Views block

I have a Views block that displays registered users. The profile picture (User:Profile) of users does not get shown when I select any image styles other than default. This only happens with users who ...
0
votes
1answer
61 views

Change teaser image size

I've noticed that the article images are sized to a width of 220px to be displayed in the teaser on the frontpage in Drupal 8. I'm wondering how to change that to 300px, for example. I created an ...
4
votes
1answer
734 views

Get an image with style url from an URI in twig

So thanks to 4k4 I finally managed to get my original image URI in a field template via item.content['#item'].entity.uri.value and with {{ file_url(item.content['#item'].entity.uri.value) }} I ...
4
votes
3answers
46 views

Display particular Image Style for image based on Role of User?

Using ImageCache Actions there are 2 different Image Styles - e.g. S1 and S2. What needs to happen: User A has Role Y and when s/he views a node/user profile should always be presented with S1 ...
0
votes
2answers
79 views

Drupal can't create image styles for files located in theme directory

I have an image located in sites/all/themes/mytheme/images directory. I'm displaying it programmatically with attached image style like: $style = array( 'style_name' => 'my_style', ...
0
votes
1answer
30 views

Services 3 File upload, create/return image styles

Ahoy all! So, long story short, I'm uploading files to drupal through services from an angular app, and getting a response/url/etc no problem. My question is, how do I enable image styles to be ...
1
vote
1answer
40 views

Image style in views field template on image

I'm struggling with a piece of code in my views field template. A short overview of the situation: Node product has a field with filename for an image Images are added with filezilla in ...
1
vote
1answer
61 views

Broken file derivatives when creating an article

I recently installed Drupal 8 to familiarize myself with this platform. I've noticed that, whenever I create an Article, and attempt to upload an image for that article, the styles created from that ...
0
votes
1answer
18 views

Images show up once, then have to clear styles folder to see again?

So I'm trying to get a site setup with a template (global news), which requires Drupal 7.x, so I'm using 7.41. Anyway, I have all the modules set up and the general layout as it should be. However, ...
0
votes
2answers
583 views

Use responsive images inline

I can see that using styles on inline images have been left out for some reason. But when I need to make the site behave a little more responsive. I have been looking after CKeditor plugins that ...
-2
votes
1answer
36 views

Whats the impact of changing image styles and jpeg compression

I've inherited a 10-year-old image-heavy (tens of thousands of images) Drupal 7 site. I'm moving the site to a full-width grid, and before I break anything, would someone be able to tell me what ...
0
votes
0answers
28 views

How does drupal manage image styles? [duplicate]

I'm building a website and several image styles are created in there. I know that for every image style, an instance of images that are using them are created. Many of the images in my website are ...
3
votes
2answers
90 views

Can I automatically regenerate all images after using Drush image-flush?

I used drush image-flush to delete all generated image style images on my site. I know that image style images are automatically regenerated when you try to view them in a browser, but is there a way ...
1
vote
0answers
28 views

Stage file proxy and ImageCache oddity

Got some weird issues with stage file proxy and generating thumbnails: When stage file proxy is enabled i can download all the files from remote server but i cannot generate any image styles. When i ...
0
votes
3answers
122 views

Aplying image styles to images return 404 for images

When image styles are aplied to images the modified images are not created and the image url returns a 404 error. I've been checking for solutions and none worked for me. I commented the Options ...
0
votes
1answer
63 views

Allowed memory size of 134217728 bytes exhausted in system\image.gd.inc reported for styled images [duplicate]

There is a content type in my website that has an image field. Some contents have images that are larger than 20MB. I created an image_style called fp which scales and resizes the images in ...
0
votes
1answer
22 views

How do you force Drupal to re-render images?

I have an image style. It's defined as requiring images which are 60x60, however all of the images it's created are 500x500. This is a screenshot of the image style definition: ...
0
votes
1answer
36 views

How to NOT change the path/uri after applying a style?

I'm working on a module. It uses an API to serve images. One of it's features is calling for a custom resolution image by GET request. So for example myapi.com/img4324342?w=22&h=55. I'm ...
0
votes
2answers
40 views

How to (ab)use image effects to serve API generated images?

I made code to add a custom effect using hook_image_effect_info() that does not alter the image for real. I'd like to serve an image from my own API instead, that has calls like ...
1
vote
0answers
100 views

How to get the Collage Formatter module to work?

I'm using the Collage Formatter module (Drupal 7) to create a gallery. But I seem to have a problem when I apply the Collage Formatter image style. When the image is smaller the colorbox doesn't ...
0
votes
0answers
23 views

Override drupal image_effect_info() behaviour to return image from API based on form

What I have hook: (this gets called) function module_name_image_effect_info() { return array( 'api_effect' => array( 'label' => t('blabla'), 'help' => ...
0
votes
1answer
21 views

Where is name defined in image_effect_info_alter(&$effects)?

function my_module_name_image_effect_info_alter(&$effects) { $effects += array( 'whatever' => array( 'label' => t('blabla'), 'help' => t('Everything ...
1
vote
0answers
34 views

Image styles - not functioning properly after migration

I have just created a site serving as an online gallery. In the gallery the user can create an album and add images to this album. Originally when I am working on my localhost the image styles are ...
0
votes
1answer
33 views

Why do images rendered with image_style_url disappear on iPhone?

I use "image_style_url" to render images in node template. Everything works fine on web browsers. However, these images disappear on iPhone. Here is my code: <div class="porDetCarousel"> ...
1
vote
1answer
76 views

Adding image file at /admin/content/media returns a 403

I am trying to upload image files at /admin/content/media, the files are getting uploaded but they are not previewed properly i.e., a 403 is returned. I have set "Default download method" as 'Private ...
1
vote
1answer
43 views

Conditionally change the image field style and wrapping it in a div

The Article content type has been classified by taxonomy vocab Topic, where each Article's node has one topic. For some usability and design requirements, I want Articles belongs to a specific topic ...
1
vote
1answer
90 views

Create picture module responsive styles programmatically

I could not find any documentation anywhere on how to programmatically create a new picture module responsive style set so am adding what I've discovered here.
0
votes
0answers
26 views

Cannot display image thumbnail when uploading photo

I am doing everything by examples, but can't display my custom theme for displaying thumbnail when uploading images: function act_profile_page() { $form = ...
1
vote
0answers
31 views

Refresh Image Style in Drupal Commerce on Add To Cart Attributes Refresh (D7)

I'm building a t-shirt website, and I'm looking into having the customer be able to choose certain shirt attributes such as hoodie/t-shirt, shirt color, etc. Using imagecache actions, I've looked ...
0
votes
1answer
22 views

Generate image style from existing one instead of original image

How can I make Drupal to generate image style from existing style, instead from original image. For example, original image is 3000x2000. I have a style medium (1000x700). And then I need a style ...
1
vote
0answers
145 views

Add media in CKeditor and image styles

The above screen shot is from Add media button in the CKeditor of drupal article content, and after selecting an image from the library. What I need to see in this window is a list of drupal's image ...
0
votes
2answers
101 views

(Views) How to style an image field conditionally based on term

I have a Drupal website in which there is a content type named Article. In that content type, there is a taxonomy field called "Topic" which is term reference field pointing to a vocabulary called ...
1
vote
1answer
40 views

Alter all images styles to add a particular effect before all others?

I just downloaded the manual crop module: https://www.drupal.org/project/manualcrop It must be added as an image style effect before it is applied. I would like to apply it to all image styles ...
0
votes
1answer
45 views

Facebook images timeline block

Is there a module and/or jQuery solution how to show multiple images in a block like the Facebook gallery on people's timeline? The images are always well aligned regardless of their size and ...