Aspect switcher

Daves - November 7, 2009 - 13:24
Project:Imagecache Actions
Version:6.x-1.6
Component:Canvas Actions Module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi

Firstly great module. Can't live without it.

Having a problem with the Aspect Switcher ( I think ). I am trying to resize photos to 169 x 127px ( which is a standard 100x75 aspect ratio ), maintaining aspect ratio by clipping portrait photos. If the photo is a portrait type I want to present the centre portion of the photo i.e. clip off top and bottom borders to get the required aspect ratio.

I have created 2 presets: for landscape photos "more_photos_resize_landscape" and for portrait photos "more_photos_resize_portrait". Screenshots attached. When applied individually both presets do what I expect, and they also display a correct preview of the Drupal droplet image. However when applied via a third preset which is nothing more than an aspect switcher the result doesn't seem to be an application of either of the "sub" presets ( but rather the image ends up as 100 x 127 pixels ). This is also what shows as the preview of the Drupal droplet image on the Aspect Switcher preset.

Is it possible that my 100% in the Crop is being interpreted as 100px when applied via the Aspect Switcher or somesuch ?

Your assistance much appreciated.

Dave

AttachmentSize
more_photos_resize.jpg42.8 KB
more_photos_resize_landscap.jpg44.64 KB
more_photos_resize_portrait.jpg48.89 KB
versions.jpg23.95 KB

#1

okeedoak - November 13, 2009 - 18:53

I don't know the answer but I'm getting a similar problem. I'm new to the module though so maybe it's something I don't understand. Let me know if you find a solution please. Thanks.

#2

Daves - November 27, 2009 - 15:18

Having re-visted this problem I now realise that apply the settings for the "more_photos_resize_landscape" preset achieves the required effect when applied to both landscape AND portrait photos, thereby doing away with the need to implement the Aspect Switcher in a separate pre-processing preset. Although this solves my immediate problem it doesn't explain the behaviour of the Aspect Switcher in the example I give.

Cheers

Dave

 
 

Drupal is a registered trademark of Dries Buytaert.