ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

phpThumb, imageMagick and EE 1.6.9 - Not Cropping

August 28, 2010 12:46am

Subscribe [2]
  • #1 / Aug 28, 2010 12:46am

    Hey Folks,

    I’m attempting to crop and scale my images using phpThumb and imageMagick. The scaling works fine, however, the cropping is still being done from the center of the image when using:

    /img/img.php?src=/images/uploads/articles/test.gif&w=253&h=175&zc=BL


    I believe I have the path set up correctly as I get the correct return when testing the version and path:

    Version return code is 0

      * Version: ImageMagick 6.2.8 08/25/10 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html

    Any suggestions?

  • #2 / Aug 28, 2010 8:46am

    e-man

    1816 posts

    Play a bit with the crop settings…example here:
    http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php#x24

  • #3 / Aug 28, 2010 10:23am

    Thanks for the reply, e-man. The problem is I guess I don’t specifically want to “crop” it per se, more, When it zoom/crops I want it to do it from a specific area, not just the center. I don’t know that the crop filter will do what I’m looking to do.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases