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

learn more… | top users | synonyms

-1
votes
1answer
22 views
2
votes
0answers
27 views

image alignment of uploaded image in WYSIWYG

Sorry if this is an easily solvable question but I am struggling to get to grips with Drupal (this is my first attempt with this cms) I am using Drupal 7 and have installed CKEDITOR (as well as ...
0
votes
1answer
30 views

Image style not loading on first load

I have images of a certain image style that only show up after reloading the page. I can see the image created in the style directory after the first page request. Its like the browser is not waiting ...
0
votes
1answer
26 views

Image_style_url with [default_image] [closed]

I am trying to print a commentator's avatar picture in the comments.tpl.php <img src=" <?php if ($picture) { print image_style_url('comment_picture', ...
0
votes
1answer
24 views

Custom image style used on image upload causing errors

The site is running in a Windows Server environment. I have a custom content type, which has a single "image" field. I have created a image style, called "slider" with the dimensions 800x480 Images ...
0
votes
0answers
22 views

Conditional image style

I need to build a preset witch if the original image have width<100 or height<100 resize the image to have the smaller side = 100px There is a way to do this? I need this because I have an ...
1
vote
1answer
61 views

Drupal cannot generate the derived image ANYMORE?

OK, My situation is really complicated (or Im stupid). I start my website http://rlsgame.org with Drupal System (even if Im .NET developer)... After 3 month, my website start grow up (about 2000 ...
2
votes
1answer
62 views

How can I get the filesize of an image with an image style programmatically

I need to make two links for an image, one link points to a low res version the other to the original file. I'm creating the link for the low res with image_style_url <?php print ...
0
votes
3answers
25 views

Does drupal create new file in image styles?

There are many images with 3000X2000 dimensions and I created a view of their content type. I also created a new image style, it is 90X70. This view displays the images in this size, but here is my ...
1
vote
1answer
56 views

Image style doesn't rebuild after image style flushed

I have practically the same problem as here : https://drupal.org/node/2187443 I've flushed my image style because I edited this image style. Now when I reload the page where the image style should be ...
0
votes
0answers
19 views

Access denied to sites/default/files/styles/slide when adding items to mediabox field

I have a field called field_property_slideshow which is type of mediabox to add image gallery to a node. This was working fine until last week (may be after the updates). I am breaking my head to ...
0
votes
1answer
19 views

Selectively applying image style to a class

On a page that displays pictures that have two different classes, how to I apply an image style to one class and not to the other? Or, how do I apply different image styles to images that have ...
0
votes
0answers
35 views

Image Style in Views Module Is Not Working Properly?

Image style in views was working fine, but then I don't know what happened. Please see this video http://www.youtube.com/watch?v=PHTh356WgfM&feature=youtu.be. I have several days tried to fix ...
0
votes
1answer
25 views

Cropping image with Drupal 7 api

I tried below codes but nothing happen.Any ideas? thanks in advance $image = image_load('/home/ok/sites/default/files/20140213030054333.jpg', $toolkit = FALSE); //print_r($image); ...
0
votes
1answer
22 views

Using setAttributes() returns a fatal error

I have the following code in a rule: $imgpath = file_load(($node->field_image[LANGUAGE_NONE][0]['fid']))->uri; $image = theme('image_style', array('path' => $imgpath, 'style_name' => ...
1
vote
1answer
24 views

Is it possible to use image styles in Views field rewriting?

I would like to add "no results" behavior to an image field displayed in Views, such that the image from an alternate field is displayed. Ie., if Image1 is empty, display Image2. Is it possible to ...
0
votes
1answer
59 views

How do I link a thumbnail image to its content programatically?

I have the following php code in a rule. It displays a picture that was uploaded by a user. How do I link the thumbnail to the content? $imgpath = ...
0
votes
0answers
33 views

How to add a CSS attribute to Image

i need to add class to image. so i have 3 column in my site. each column have block for news, i need to add class for each images. first class is .imgsmall {width:355px; height:125px;} second ...
0
votes
1answer
38 views

Drupal 6 Image Resize Thumbnail Maintain Aspect Ratio

We have a content type which has an original image. There is also a resized version which is not a thumbnail, but not the original size either which is used on a drill down page. What is the best ...
0
votes
1answer
175 views

Drupal + Nginx: image styles not working

I've already read answers for this question on drupal.org forums and on drupal.stackexchange.com, but none of them worked. I've compiled nginx 1.5.8 and php 5.5.8 from source on rhel (openshift diy) ...
0
votes
0answers
44 views

How does resizing of images work with lighttpd?

I switched the Webserver from Apache to Lighttpd. Since then, resizing images according to the defined sytles (/admin/config/media/image-styles) does not work anymore. Anybody knows what may be ...
0
votes
1answer
46 views

Image style is not rendering

My field_image is not rendering on user-profile.tpl. I have the following code (two different ways to render for testing): $image = field_get_items('user', $user, 'field_image'); $output = ...
1
vote
1answer
98 views

how to check if the image field is empty or have uploaded image?

<?php $nid = arg(1); $path = arg(0); $node = node_load($nid); if(isset($nid) && is_numeric($nid) && isset($path) && $path == 'node' && isset($node) ...
1
vote
1answer
377 views

How do I preserve GIF animation with the image field and image styles?

Currently, when I upload animated GIFs to image fields, image styles breaks the animation as part of the crop/resize sequence. I'd love to be able to preserve animation while also taking advantage of ...
1
vote
2answers
60 views

Print image filed on basic pages only

<?php $field = field_get_items('node', $node, 'field_page_cover_image'); if($field){ $theme_img = file_create_url($node->field_page_cover_image[$node->language][0]['uri']); ...
-1
votes
3answers
67 views

“$nid” for individual pages not working

<?php $nid = arg(1); $arg0 = arg(0); if(isset($nid) && is_numeric($nid) && isset($arg0) && $arg0 == 'node') { $node = node_load($nid); } $theme_img = ...
0
votes
1answer
23 views

need path of an image created using an image style [duplicate]

<?php $node=node_load(3); $theme_img = file_create_url($node->field_theme_image[$node->language][0]['uri']); //origional image path print $theme_img; ?> I am trying to load an ...
0
votes
1answer
147 views

How to set maximum height in image style in Drupal 7?

I want to define an image style in Drupal 7 which changes the width of images to 200px and the max of the height to 150px. That means if a picture is 400x300 the image style should change it to ...
2
votes
1answer
121 views

How renderable array for an image with style should look like?

I have a custom module that outputs some images. Now, I would like to render them properly. Currently, I use theme() function, kinda similarly to the way shown here1 and here1: echo ...
2
votes
1answer
148 views

change image size in media file selector of media module

how can I change the size of the image that show in media file selector popup in media module , I don't know which image style this module use, and how can I change the image style which is currently ...
0
votes
0answers
108 views

NGINX + Drupal 7 Image creation via system/temporary failing with 404

I'm trying to migrate a Drupal 7 site to NGINX, and have everything working except for when the system tries to create images for specific Image Styles. I'm using the Amazon S3 module for file ...
0
votes
2answers
39 views

How to display one image in multiple sizes across the site?

I would like one image to show in different locations, for example: Event in the Calendar (Cropped version of the image) Homepage (if promoted to Front Page - as the full size of the image) Is ...
0
votes
1answer
128 views

How to override the default image style for displaying user picture?

I have Statuses Module installed on one of my site. I have created a view to display the status along with the user picture and the following comments. The view displays the user picture along with ...
0
votes
0answers
172 views

After flushing cache images disappear

I've recently had to restore a website after a server crash. I have the majority of the website back up and running. The problem comes when I flush the cache or disable a module. Images that were ...
0
votes
2answers
75 views

Why is there quality loss on my image styles?

This is the original image (610x405) This is the image after applying image style (scale and crop) to 290x190. Both image have the same aspect ration, yet there is visible quality loss on ...
1
vote
3answers
325 views

image_style_url no longer creates images

This started today on a website that has been running for over two months. I have a custom module that creates an image using the following code: $image = ...
1
vote
3answers
306 views

How can I center a views slideshow? [closed]

I have setup a views slideshow, but is anyone able to help me with centering the images in the middle of the slideshow? Some images are not very wide and they are aligned to the left of the slideshow. ...
0
votes
1answer
711 views

Best way to use image styles with Media and WYSIWYG?

Up to now, I've been using the Insert + WYSIWYG + CKEditor to insert images with specific Image Styles in a wysiwyg interface. This works well, and it's very easy to select and apply image styles ...
0
votes
0answers
101 views

How can I have different image size for a content type

I have 3 type of products that I want to put their image in my site. I have define a content type for them. there is a field that I put the image of my products and I've use imagefield crop module to ...
0
votes
1answer
67 views

Resize & Crop Image Style Lowers Resolution

Whenever I try to implement a "resize & crop" image style on the display of a node in Drupal 7, the image also comes out with a lower resolution than the original file. Any idea why this might be ...
0
votes
0answers
37 views

How to apply image style to a Media based field based on taxonomy term?

I have a view with a Media field and some others. I want to apply an image style to resize the image based on a term (big, medium, thumbnail) exposed from a Term reference field. Do I have to ...
0
votes
0answers
43 views

Background images using Breakpoints and Picture

I want to serve my background images by breakpoints. I can't seem to find an out of the box way to do this using the Breakpoints and Picture modules, which I'm using for some node images. Has anyone ...
0
votes
1answer
469 views

Image styles are not getting created [duplicate]

Our image styles are not getting created on one of the Drupal 7 sites in a multi-site installation. They are created for at least one of the other sites that uses the same Drupal 7 core. Symptoms: ...
0
votes
0answers
19 views

Add image rotate option for Profile2 image field [duplicate]

I'm using Profile2 for users, and there is Image-field for user profile picture. I noticed that it is very common to users to have picture which is taken vertically. And when they upload image to the ...
3
votes
3answers
155 views

dynamic image style

I would like to create a custom content type where the editor can choose his preferred image size. For example I would have a field_image_style with the three options small/large/huge and in my node ...
3
votes
0answers
38 views

How to create and apply image style programatically [duplicate]

I need to create and apply image style based on the height and width provided by user. So what I did is, I created image style using Drupal core UI ...
0
votes
0answers
239 views

Access Denied on private image styles but not on public

I am allowing a user to upload images via FTP into my private:// location as configured under File system. This location is owned by ftpuser:apache and has write permissions for both user and group. ...
0
votes
2answers
39 views

how to use image styling on a image url field

I understand that on an image field, you can create a image style. However, I have a field which is a url and I use that url in a template to produce a picture. Is there any way for me to use the ...
0
votes
0answers
33 views

Change Image Style for Thumbs in Supersized Module

Where/how do I change the image style of the thumb in the thumbnail tray? I would simply just like to resize the thumbs to be bigger. I see there are two media styles associated with the Supersized ...
2
votes
1answer
52 views

Watermarking an image that is not in the Drupal filesystem using image_style

I get an image through the ImageMagick PHP extension because I don't want to start the PHP exec() function. This works. But I'm not managing to create a watermarked image using image_style because ...