Download & Extend

Allow transparency on crop action

Project:ImageCache Actions
Version:7.x-1.x-dev
Component:Canvas Actions Module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

The dev version for drupal7 has an option for selecting the color of a background for a crop.
We'd like to set the background to transparent.
When we enter 'transparent' in this field, the background is black.
#transparent is the result.
Should this work?
Am I doing this incorrectly?
Is this a feature that was lost in the upgrade?

Thanks in advance for any comments.
peace,
michael

Comments

#1

Status:active» postponed (maintainer needs more info)

Crop is not an effect provided by the imagecache_actions module but by Drupal core (as id Scale and crop). Moreover crop does not have a background color field as, apparently, it is assumed that it will only make the canvas smaller.

So what effect do you mean?

BTW: For some effects, leaving the color/HEX field empty will be interpreted as transparent.

#2

It was also intended that RGBA values would be supported in color selectors.
eg #000000FF is transparent white, and you can define a canvas with that.

As ever, convert to PNG if you want that to turn up in the result.

AttachmentSize
transparent_canvas.png 101.11 KB

#3

Status:postponed (maintainer needs more info)» closed (works as designed)

Only for the imagecache actions side - not for core crop (though define_canvas also will crop as a side-effect)

We could probably add that to the docs there.