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

learn more… | top users | synonyms

1
vote
2answers
88 views

Images referring wrong path

I uploaded some images in content. the images are uploaded to "sites/default/files". but in node page the images are referring "sites/default/files/styles/large" path. how to change it?
1
vote
0answers
17 views

How to allow uploaded image brightness and contrast to be edited with a UI like a slider?

Many sites, like eBay to give a well-known example, allow users to edit images they upload with a slider or buttons to increase or decrease brightness and contrast. When the UI is used, a new image is ...
1
vote
1answer
17 views

How to change the image style for image preview in node-add/edit form?

IN a related question, "How to set image style for media browser in node edit form?" one response noted that "Once you have chosen the image and clicked save and the overlay is closed, images are ...
1
vote
1answer
8 views

Image Gallery Has Blurry Images

My image gallery is showing the images blurry. Its using Ligthbox2. When I click on the images, they show clear in the lightbox. Is this a lightbox setting?
0
votes
1answer
33 views

How can I get the responsive image style id from a FileFieldItemList

I am trying to get the machine name of the responsive image style attached to a field. I am not able to get this from the settings attached; it seems it is not accessible from the object in any way. ...
1
vote
0answers
25 views

Image thumbnail styles are not created

I'm moving a website in a production server and it appears that the image thumbnails aren't created from an Image Field in a content. The images are uploaded correctly but no files are created in ...
-1
votes
1answer
39 views

The home page is showing only texts [closed]

I am using the drupal 8.1.2 version but the home page is showing only texts like the image attached. Please suggest what to do.
0
votes
0answers
10 views

What does the “Empty srcset[]” breackpoint in Picture Module?

I'm using the Picture Module but one thing I do not understand. What does exactly the "Empty srcset []" breackpoint ? Why I should use it and why I shouldn't use? Thank you a lot.
4
votes
1answer
29 views

Is it possible to use an image style with a path rather than a URI?

I want to be able to send an image included in a custom module to the image_style theme like: $render_image = [ '#theme' => 'image_style', '#style_name' => $imagecache_template, '#...
0
votes
1answer
40 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
1answer
37 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 ...
1
vote
0answers
33 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 ...
1
vote
1answer
21 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
25 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
75 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
54 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 ...
2
votes
2answers
12 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
26 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
19 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
49 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 ...
1
vote
1answer
126 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
17 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
36 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
30 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 admin/config/people/accounts/...
1
vote
1answer
24 views

Re-write output on different images on Views Slideshow

Using this - tutorial I have a views slideshow that rotates images with a fade effect. I know you can re-write output to show images and a text field below but so far I can just add one text block - ...
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
91 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
1k 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
50 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
122 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
34 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
45 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 default/...
1
vote
1answer
84 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, I'...
1
vote
4answers
824 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
38 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
29 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
133 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
36 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
161 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
79 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: https://monosnap.com/...
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
41 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 myapi.com/img2123?w=25&...
1
vote
0answers
111 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
25 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' => t(...
0
votes
1answer
22 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
35 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
34 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"> &...