By Sc0tt on
Can anyone recommend a module/method for upscaling images using Drupal 6 since imagecache doesn't seem to do this?
Thanks very much,
Scott
Can anyone recommend a module/method for upscaling images using Drupal 6 since imagecache doesn't seem to do this?
Thanks very much,
Scott
Comments
Imagecache will upscale, but
Imagecache will upscale, but it eats a lot of memory. Try imagemagick:
http://www.perturb.org/display/ImageMagick_resize_images.html
There's a Drupal module for this, and I've noticed that most ISPs have it pre-installed somewhere you can access via an 'exec' call. I have not played with the Drupal module, so you'll have to just try it or someone else with experience with that module may chime in...
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
Imagecache will upscale?
Thanks for the help Blake!
I've tired 9 ways to Sunday to get imagecache to upscale and it doesn't work for me. I've noticed a lot of people complaining about it here in the forums. Can anyone explain how to get imagecache to upscale?
Thank you very much,
Scott
In Imagecache, upscaling is
In Imagecache, upscaling is allowed on the Scale action, but not on any others.
For greater flexibility, I think this may be the module you're looking for:
http://drupal.org/project/im_raw
It allows you to write ImageMagick command line options as an imagecache action. Read this snippet of help:
http://drupal.org/node/595712
And looks at the full list of imagemagick options here:
http://www.imagemagick.org/script/command-line-options.php?ImageMagick=8...
Hmmm... im_raw sounds great.
Hmmm... im_raw sounds great. That's the type of modules I like to see - just give us the raw power of an open source tool as a triggerable action. Awesome!
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
conclusion
Hi,
Just thought I'd report back. Myself and Sc0tt have got to the bottom of this, certainly for his use case anyway.
I guess the crux is that it's important to specify width and height in pixels if you're trying to upscale to a particular width. For example, if you specify a width of 600px and a height of 100% (with upscaling allowed) for the action (expecting the image to scale to 600px, irrespective of the height), this will not work. Take an example image of 300x200px. 100% of the height of this is 200px and so an upscale action on imagecache will do nothing. It wil scale into a box of 600x200px - its width cannot increase as its height is already 200px.
To get the upscale to work, specify an arbitrarily large height for the upscale action. In this case, 600x2000px should be OK, unless you're expecting images with extreme aspect ratios.
The upscale action is then bound by the width, not by the height.
Hope that clears up this issue.
Or just leave the one of the
Or just leave the one of the fields blank.
To get the upscale to work,
Thank you!