#1
  1. Advisor
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Stockholm, Sweden
    Posts
    446
    Rep Power
    15

    ImageMagick example?


    As far as i know ImageMagick is "using" PERL..

    ...can anyone give me an example on how to use it in a
    PHP script....

    ...or a link to some tutorial...(PHP related...)
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2009
    Posts
    1
    Rep Power
    0

    Hello, find here image magick example with function.


    Hello,

    Here is image magick function given with resizing ...

    and its working on godaddy server. I checked.

    analyzatechnologies.com/blog/creating-thumbnail-of-jpg-gif-png-with-php-imagemagick-library/
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Location
    Germany
    Posts
    1
    Rep Power
    0
    Hello,

    you must change the path in the listing : /usr/bin/
    (ask hoster)
    Code:
    <?php $width = 800; $height = 600; $img = "test.jpg"; $convert = '/usr/bin/convert -size '.$width.'x'.$height.' xc:"#3C8229FF" '.$img; exec($convert); echo '<img src="'.$img.'">'; ?>
    have a nice day, Olaf

IMN logo majestic logo threadwatch logo seochat tools logo