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

learn more… | top users | synonyms

1
vote
0answers
17 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
26 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
16 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
37 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
34 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
28 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
31 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
18 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
31 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
27 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
28 views
2
votes
0answers
69 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
47 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
51 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
45 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
66 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
94 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
86 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
99 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
55 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
21 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
41 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
31 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
23 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
40 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
72 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
52 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
58 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
78 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
250 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
779 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
77 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
78 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
27 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
331 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
303 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 ...
3
votes
1answer
336 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
136 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
52 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
215 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
291 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
151 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
603 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
498 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
1k 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
127 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
106 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
39 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 ...