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.
I've scrapped all my previous ideas (but the files are still there,
except for the old patch) and took a new approach. Basically,
this patch lets NetPBM and ImageMagick live together in harmony.
You can switch between the two with a minimun of effort. Just
re-run the config process. It also better integrates my drop shadows
add-on so that you can customize it per-album if you wish. The
default setting is 'off' but you can change that in the configuration.

For more details and information, visit http://www.sexorcisto.net/gallery-patch/

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-09-02 04:29

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.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-09-05 04:31

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:

 
Trouble

Joined: 2002-09-11
Posts: 21
Posted: Wed, 2002-09-11 15:12

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.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-09-13 03:37

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.

 
Trouble

Joined: 2002-09-11
Posts: 21
Posted: Fri, 2002-09-13 20:04

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