Yeah this isn't going to be distributed, this is more of a customised
solution for our service... http://photos.vfxy.com/themes/
Thanks Anthony.
On Feb 17, 2008 7:41 PM, Anthony Thyssen <[EMAIL PROTECTED]> wrote:
> "David Di Biase" on wrote...
> | Hi Fred,
> |
> | I actually just came up with quicker own solution, heh. Here it is in
> | PHP-ish scripting:
> |
> | if (($x / $y) < 1.38461538) {
> | $c_rate = ($val[1] - ($x * 130 / 180));
> | $newheight = $val[1] - $c_rate;
> | shell_exec("convert {$img}.jpg -crop {$x}x{$newheight}+0+" .
> | ($c_rate/2) . " {$img}!");
> | } else {
> | $c_rate = ($val[0] - ($val[1] * 180 / 130));
> | $newwidth = $val[0] -
> | $c_rate;
> | shell_exec("convert {$img}.jpg -crop {$newwidth}x{$val[1]}+" .
> | ($c_rate/2) . "+0 {$img}!");
> | }
> |
> | That should crop it in the middle and account for the aspect ratio that
> I
> | specified. :-) If you see any trouble with this let me know!
> |
> No problem. A DIY solution will be more backward compatible. Especially
> as users often do not have control of the IM installations on many ISP
> provided web servers.
>
> Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
>
> -----------------------------------------------------------------------------
> Computers are completely unintelligent. Just big adding machines that
> count on thier fingers. Except thay have an increadible amount of
> fingers and can count awfully fast. -- Harry Harrison, ``Home World''
>
> -----------------------------------------------------------------------------
> Anthony's Home is his Castle
> http://www.cit.gu.edu.au/~anthony/<http://www.cit.gu.edu.au/%7Eanthony/>
>
--
David Di Biase
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users