Closed (fixed)
Project:
ImageCache
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2007 at 21:21 UTC
Updated:
28 Feb 2007 at 05:30 UTC
Hi,
is it possible to define the background of cropped images? I have a preset where images are first scaled to certain width and then cropped to make them exact height. Some of the scaled images are smaller than the height defined in the crop action. The result is black background. Available image toolkits are Imagemagick and GD.
I'm using Drupal 5.1 and imagecache 5.x-1.2.
Comments
Comment #1
quicksketchI've noticed this behavior also. Unfortunately as long as we're using the Drupal image_crop() function this color is simply a by-product of creating a new blank image. Until imagecache begins using transformer module (in development), I don't think this behavior will change.
Comment #2
svetlin commentedThanks for the reply. I'll have to use just the scale action then.