How to use IM with PHP?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
JensO

How to use IM with PHP?

Post by JensO »

Ok, i want to use IM becouse it's easier than GD.

okay, what i know:

that I have to use: "exec()"
that my ISP's dir to IM is "/usr/local/bin/convert"

so what i knew is:

Code: Select all

exec(/usr/local/bin/convert <what comes next?>)
To describe what i want to do:
by a php-doc i upload an image to mydomain.tld/images/orginal

with help from IM i wish to make 2 tumbs of this file:
one thumb to
mydomain.tld/images/thumb100
and one to
mydomain.tld/images/thumb500

can some one help?

thanx :roll:
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

You are posting in the wrong part of the forum JensO - it should be under the users section.

Code: Select all

exec("/usr/local/bin/convert original_image -thumbnail max_widthxmax_height mydomain.tld/images/thumb100 ");
Some php examples on my site select the www link below.
JensO

Post by JensO »

okay, sorry about the posting in wrong category. maybe admin can move this tread?

i found out how to use the code and everything is working perfect :D
Post Reply