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

learn more… | top users | synonyms

0
votes
0answers
21 views

Image styles not being created ( sometimes )

I am creating a node programatically which has an imagefield with 16 images attached. Each image is a blank PNG of about 1000px by 768px weighing in at about 5KB. The node displays fine. On a ...
0
votes
1answer
9 views

How to avoid Exif data rotating images automatically after upload?

an image has been taken upside down, then rotated with any software, then uploaded to my Drupal website and it shows how it was originally taken because it read the Exif metadata. Is there a way to ...
0
votes
1answer
17 views

Content Field Type Image not auto resizing

I am fairly new to Drupal, I am currently working through Tom Geller's excellent video series on Lynda.com. All is going well, except I am having a problem when trying to set display properties for ...
0
votes
0answers
16 views

Warning: Invalid argument supplied for foreach() in image_style_create_derivative() (line 902 of image/image.module)

I'm uploading my images to Rackspace cloud CDN using the following code: <?php if (!empty($entries)) { foreach($entries as $value) { $container_id = $value['cid']; $nid = ...
1
vote
0answers
19 views

Programmatically select image style for use with custom file entity view mode

I have created an empty custom view mode for file entities with hook_entity_info_alter(). I would like to programmatically select settings for it, so that they can be deployed without a user having ...
1
vote
1answer
19 views

Store only a resized version of an enormous uploaded image

I have editors uploading images the size of 3.8MB. I don't want to lower the maximum size for image/file upload (it's set to be 5MB), that's because I use core Image Styles ...
0
votes
3answers
43 views

Image style scale and crop not formatting right

I had a scale and crop image style created, but I had to move it to code. So, to re-create it, my code is: function mymodule_image_default_styles() { $styles = array(); ...
0
votes
0answers
19 views

7 picture doesn't generate images emidiatly

I have a site with picture installed. When a user access the site with a device where image styles are not created yet the user has too refresh the site to see the image. How could I force the theme ...
3
votes
4answers
132 views

How can I create unique path alias for image styles?

image_style_url returns the public url of an image in the files/styles folder. Is it possible to create alias to that? What I want is the following: Call image_style_url from the image style and the ...
0
votes
2answers
34 views

image style not applied porgrammatically

I create below function to create image style programmatically function imh_get_image_from_uri($image_uri, $style) { $derivative_uri = image_style_path($style, $image_uri); $success = ...
0
votes
2answers
23 views

ImageStyles does not create thumbnail image while uploading large images

I try to create a website using Drupal on a shared host, everything goes fine except ImageStyles. When I try to upload large images (more than 1MB) thumbnails does not created , but works fine with ...
1
vote
1answer
60 views

Apply CSS and Javascript affect to images [closed]

Updated I am trying to add CSS and Javascript hover affect to some images in drupal 7 .. something like in this tutorial. http://callmenick.com/2014/03/06/image-overlay-hover-effects-with-css3-t ... ...
0
votes
1answer
36 views

Drupal Commerce Kickstart cloud zoom image not working?

I am using Drupal commerce kickstart. I want to show the thumbnail images. I am using custom html theme in my project. How to show the thumbnail image in product page? Please anyone guide to me.I am ...
1
vote
0answers
25 views

Warning: unlink() expects parameter 2 to be resource, string given in drupal_unlink() (line 2194 of /includes/file.inc)

I'm using drupal_unlink() for deleting my files, but don't know why I'm keep on getting this error repetitively? Warning: unlink() expects parameter 2 to be resource, string given in drupal_unlink() ...
2
votes
1answer
56 views

CDN Module and Image Styles

Yesterday I installed the CDN Module using Amazon Cloudfront and magically everything worked as expected. I was quite happy. This morning I was showing off my new improved CDN enabled website to a ...
0
votes
1answer
19 views

Resize Image for more than one Image Size profile automatically

Here is my problem. I have field BigPicture in a my Product Content Type. Is there a way that When I upload an image from BigPicture Field that the current picture automatically resize in more than ...
-1
votes
2answers
148 views

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32598429 bytes)

I'm new to drupal. I was uploading multiple files to a page and then tried to increase size of the page. However when doing so, I got this error. Fatal error: Allowed memory size of 134217728 bytes ...
0
votes
0answers
56 views

Drupal 7 Image Style not working for larger size image

I am working on a drupal 7 site http://imgmart.com where I have defined multiple image styles. I have a content type called gallery with image cck field. Everything works fine if I upload image of ...
0
votes
2answers
37 views

styles unlimited value image fields

I use unlimited values for image field in a content type, then the images displays one below the other : Is there a way to render this field differently ? For example every line show me only three ...
0
votes
0answers
46 views

Is it possible to add an image watermark to an image with a condition based on field values of a node?

I am currently using imagecache_actions to add an image watermarks to the images I upload. So far everything is working fine. What I am currently doing is just to simple add the site logo to the ...
0
votes
2answers
19 views

Adding an Image Style

I'm new to Drupal, and I'm attempting to add an image style to a Basic Page in the "Manage Displays" area. After savings, there is no effect with the images on my basic pages (i.e. the image style was ...
0
votes
2answers
36 views

Applying image style to authors pictures in comments without preprocess function

Is there anyway I could apply an image style to the user picture in comments without using a preprocess function (YOURTHEME_preprocess_user_picture?) The reason I ask this is because the preprocess ...
0
votes
0answers
52 views

Selling images with commerce at different resolutions and prices

I would like to sell photos and charge based on the resolution chosen like the usual stock photo sites do. I think the ideal solution would be to set the resolution as a product attribute and then ...
-1
votes
1answer
29 views
2
votes
0answers
83 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
57 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
67 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
50 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
87 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
116 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
93 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
29 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
123 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
83 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
23 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
46 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
32 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
24 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
45 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
76 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
34 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
59 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
0answers
67 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
87 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
342 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) ...
2
votes
1answer
1k 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
83 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
79 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
28 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
458 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 ...