ImageMagick Integration Patch
|
vallimar
Joined: 2002-08-15
Posts: 487 |
Posted: Mon, 2002-09-02 04:12
|
|
I've created my (final?) masterpiece ImageMagick patch. For more details and information, visit http://www.sexorcisto.net/gallery-patch/ |
|

Posts: 487
Oh, FYI, T. Nan, the original creator of this project has stepped down.
He is no longer using Gallery and does not wish to maintain any work
on this modification. I have agreed to take over 'maintainership' of
this patch until someone more qualified comes along.
Posts: 487
To any who are interested, the patch has been updated to correct a couple
issues. Should work as expected if applied to an existing installation now.
If you encounter any issues, make sure you let me know so that the patch
is stable as possible and it can hopefully be included in the next release of
Gallery 1.x. At least that's what I'm hoping for :wink:
Posts: 21
vallimar,
My version of convert (from ImageMagicK version 5.4.2.3-3mdk) doesn't have the resize option!
In util.php, changing:
$err = exec_wrapper(ImCmd("convert", "-quality ".
$gallery->app->jpegImageQuality .
" -size ". $target ."x". $target ." $src".
" -resize ". $target ."x" . $target .
" +profile "*" $out"));
to:
$err = exec_wrapper(ImCmd("convert", "-quality ".
$gallery->app->jpegImageQuality .
" -sample ". $target ."x". $target ." $src $out"));
works nicely here. I only missed out the +profile and -size options because I didn't know what they did and I was keeping it simple.
Posts: 487
Thats an old version of ImageMagick, the proper fix would have been to
change -resize to -geometry. -sample provides inferior quality images,
but is slightly faster.
Posts: 21
Thanks for clearing that up.
I was in a hurry so updated to the latest mandrake rpm available to me.
I had to hack the whole thing anyway because I wanted to create thumbnails all the same size (120x120, aspect ratio preserved) no matter if the original photo is 640x480 or 480x640 etc.
Trouble