Closed (fixed)
Project:
Dummy Image
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2011 at 10:53 UTC
Updated:
15 Feb 2011 at 20:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
jonhattanHere's a patch
Comment #2
manuel garcia commentedPatch applies fine, and apparently gets the width correctly, but the height is not correctly detected, it gets the same height as the width.
Comment #3
manuel garcia commentedJust a pointer that might be helpful, in my module galleryformatter I have a similar function, perhaps you'll find it useful:
Comment #4
manuel garcia commentedA sample default preset wehre the dummy image gets the same height as its width with the patch:
Comment #5
jonhattanmy presets looks like:
Comment #6
manuel garcia commentedwe've just found out that if the default preset DOESN'T have 'px' in its width/height, the patch works properly.
Comment #7
manuel garcia commentedI think the patch is good to go. Having px in the presets is no use and a bad idea, but that's something that should be tackled in imageacache itself i suppose.
Comment #8
jonhattanFor the record imagecache doesn't even have a match for 'px' in its code. I wonder how this is working for you.
Comment #9
naxoc commentedCommitted :) Thanks!
And you are right about the -px suffix, Jonhattan. I think it used to be around but got deprecated some time ago.