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

learn more… | top users | synonyms

0
votes
0answers
9 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
13 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?
0
votes
0answers
14 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
57 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
21 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
24 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
15 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
40 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
49 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
31 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
56 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 ...
3
votes
1answer
543 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
45 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
68 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
29 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 ...
0
votes
1answer
36 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
56 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
461 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
81 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
24 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
110 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
56 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
35 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
94 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
33 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
31 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
75 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
41 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
84 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
24 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
26 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
131 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
95 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
38 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
44 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 ...
1
vote
1answer
231 views

Thumbnail generation with nginx reverse proxy

I'm using nginx as a reverse proxy for a Drupal 7 site running on Apache2. When I try to view a thumbnail I get the Drupal 404 page saying that the location is not found. I have implemented the ...
1
vote
0answers
12 views

Display inline images with specific image style

Is there some way to get inline images (inserted with Media/FCKEditor) to be displayed in a specific image style? I can only get them displayed in the original format. I have tried the Picture ...