Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jun 25, 2006, 22:06   #1
ArticleBot
SitePoint Articles
 
ArticleBot's Avatar
 
Join Date: Apr 2001
Posts: 0
Article Discussion

This is an article discussion thread for discussing the SitePoint article, "Create Dynamic Images with ImageMagick"
ArticleBot is offline   Reply With Quote
Old Jun 26, 2006, 00:25   #2
chris_fuel
SitePoint Wizard
 
chris_fuel's Avatar
 
Join Date: May 2006
Location: Ventura, CA
Posts: 2,837
mm, maybe it's just me, but I tend to notice more of my clients work with GD lib than imagemagik.. and I thought imagemagik had to be run through exec or something (even when using a class)?
chris_fuel is offline   Reply With Quote
Old Jun 26, 2006, 05:04   #3
Rubble
SitePoint Guru
 
Rubble's Avatar
 
Join Date: Dec 2005
Location: Cambridge, England
Posts: 781
I have ben having a go with Imagemagic over the last couple of weeks and there is a lot more you can do with it over GD. Wether its useful or not though !

Some examples I have tried here www.rubblewebs.co.uk/imagemagick

As you say chris_fuel I think you ned to run it as a "shell" script and it will not work if the server has "Safe mode" turned on.

GD seems to have come to a stop in devolpment as the last update I could see was in 2004 ?

P.S. How sad am I - posting here while I am away on holiday
Rubble is online now   Reply With Quote
Old Jun 26, 2006, 06:39   #4
didimo
SitePoint Enthusiast
 
didimo's Avatar
 
Join Date: Jan 2006
Posts: 80
great article, im currently using GD but considering switching to imagemagik.
didimo is offline   Reply With Quote
Old Jun 26, 2006, 10:20   #5
zeke_the_geek
SitePoint Member
 
zeke_the_geek's Avatar
 
Join Date: Apr 2005
Posts: 0
Two things I look for when using a new tool is ease of installation and use. I installed ImageMagick with no problem; however, MagicWand is still not working. I am running PHP 5.1.4 in Windows with IIS. The DLL (php-5.0.4_magickwand_dyn.dll or php-5.0.4_magickwand_q16_st.dll) will not load. I will keep trying over time to get MagicWand to work, but I would like to see it install without having to troubleshoot installation and then I can checkout how easy it is to use.
zeke_the_geek is offline   Reply With Quote
Old Jun 26, 2006, 18:04   #6
Anil
SitePoint Community Guest
 
Posts: n/a
How useful is this? Rotate, crop, resize, sure... but how about generating a bar graph? What about generating wavy text graphic security confirmation images? The possibilities presented seem of limited usefulness.
  Reply With Quote
Old Jun 27, 2006, 18:27   #7
Ryno
SitePoint Community Guest
 
Posts: n/a
Developers need articles that demonstrate the techniques required, PLUS real world quality examples that tackle common problems developers face, ideally that can slot right in to an either current, or future project.

This tutorial provides neither as far as I'm concerned.

The ACID test for me when reading articles from anywhere is, go straight to the final product and if it's cool then the tutorial is worth reading. If it isn't, then you may be better off reading something else!
  Reply With Quote
Old Jun 28, 2006, 08:29   #8
Matt Wade
SitePoint Community Guest
 
Posts: n/a
Regarding the ImageMagick book from Apress, we have also starting giving a free color eBook with every purchase of the print book. Just wanted to make sure everyone was aware...
  Reply With Quote
Old Jun 30, 2006, 16:02   #9
mtjo
SitePoint Enthusiast
 
Join Date: Jul 2002
Posts: 95
Quote:
it is more commonly supported by web hosting services than any other package
As opposed to GD2 or NetPBM? GD2 only has to be enabled via the php.ini during install/compile as opposed to installing external packages to get IM to run. Not to mention that hosts with safemode enabled rules out IM. Not trying to state whether any graphics package is superior, but GD2 is the most commmonly installed package on general hosting.
mtjo is offline   Reply With Quote
Old Jul 1, 2006, 23:01   #10
Gator99
Non-Member
 
Gator99's Avatar
 
Join Date: Sep 2004
Location: Florida
Posts: 644
Image Magick produces far better results than the stock php image manipulation functions. Personally I don't use the extensions, just call the utilities through exec. The examples listed here are just the tip of the iceburg, for full capabilities check out the docs. If you know what you're doing you'll never go back to the built in php functions.
Gator99 is offline   Reply With Quote
Old Jul 2, 2006, 00:24   #11
_theworks
SitePoint Zealot
 
_theworks's Avatar
 
Join Date: Dec 2005
Location: New Zealand
Posts: 170
Quote:
How useful is this? Rotate, crop, resize, sure... but how about generating a bar graph? What about generating wavy text graphic security confirmation images? The possibilities presented seem of limited usefulness.
I disagree. the things you want to do are possible in just-about any image manipulation library inlucding GD and ImageMagick.

Tho ImageMagick boast vast amounts of functionality i think it's ease of use that normaly has people saying GD is better.

in my opinion GD is better for simple things but in terms of power, IM prevailes
_theworks is offline   Reply With Quote
Old Jul 2, 2006, 00:47   #12
chris_fuel
SitePoint Wizard
 
chris_fuel's Avatar
 
Join Date: May 2006
Location: Ventura, CA
Posts: 2,837
bah, back in my days we used fopen, fread, and fwrite!
chris_fuel is offline   Reply With Quote
Old Jul 4, 2006, 22:05   #13
AnilG
SitePoint Member
 
AnilG's Avatar
 
Join Date: Jun 2006
Location: Sydney, Australia
Posts: 1
Quote:
Originally Posted by _theworks
I disagree. the things you want to do are possible in just-about any image manipulation library inlucding GD and ImageMagick.
I not sure you realise:
I wasn't suggesting this was not possible.
I was only saying these examples weren't demonstrated in the article.

Anil G
AnilG is offline   Reply With Quote
Old Jul 5, 2006, 04:50   #14
ikeo
SitePoint Guru
 
ikeo's Avatar
 
Join Date: Oct 2004
Location: Austin Texas
Posts: 665
I suggest there be more on how to install ImageMagick for PHP in this tutorial.

Its less than obvious that you have to go here
http://www.imagemagick.org/script/api.php
and download MagickWand for PHP.

I think adding that section would really make this tutorial accessible to beginners (unless that isn't your target audience of course).
ikeo is offline   Reply With Quote
Old Jul 16, 2006, 03:22   #15
didimo
SitePoint Enthusiast
 
didimo's Avatar
 
Join Date: Jan 2006
Posts: 80
installing this is a nightmare heres from INSTALL file

--------------------
MagickWand Extension for PHP :: Installation Instructions

** REQUIRED ** ImageMagick version :: 6.2.4-1
Last-known-good ImageMagick version :: 6.2.4-1


Installation Steps

1) Either install the required ImageMagick version or make sure that it
is installed (running "Wand-config --version" should give you the
required information).

2) Extract the contents of the archive this file was in, or copy the
entire directory the this file is in (make sure that it is still called
"magickwand") to the "ext" directory in the PHP source folder. So, if
your PHP source folder is called "PHP_SRC_DIR", you should end up with
a directory structure like the following:

PHP_SRC_DIR/ext/magickwand/

3) Go into the "PHP_SRC_DIR/ext/magickwand/" directory, and run "phpize".
(A note: if this is the first time PHP is being installed, you have to
install PHP without MagickWand, because "phpize" is a part of the PHP
distribution.)

4) Go back to the main PHP source directory (from the example above, it
would be "PHP_SRC_DIR", and run:

rm ./configure

and then

./buildconf --force

to remove and rebuild the PHP configure script.

5) Follow the PHP installation instructions, but add

--with-magickwand=IMG_MGCK_DIR

to your ./configure command, replacing "IMG_MGCK_DIR" with the full path
of the directory where ImageMagick is installed (in most cases "/usr").
didimo is offline   Reply With Quote
Old Dec 22, 2006, 06:48   #16
zaheer
SitePoint Community Guest
 
Posts: n/a
can we convert html to image. it displays image as html is displayed?
  Reply With Quote
Old Mar 9, 2007, 06:51   #17
Snowby Dave
SitePoint Community Guest
 
Posts: n/a
MagickEchoImageBlob() function will not display image under HTML tags.

Do anybody have any idea which function will display image on table.
  Reply With Quote
Old Mar 23, 2007, 12:21   #18
Allen
SitePoint Community Guest
 
Posts: n/a
Snowby: No. HTML pages have a content-type of 'text/html' or something similar, images are 'image/png', 'image/jpeg', etc.

You can only send one type per session.

If you want dynamic images you must create them in another php file such as "dyn_image.php" which sends NOTHING but the single image.

Then in your HTML in an image tag you would do src=dyn_image.php
  Reply With Quote
Old Jun 22, 2007, 13:52   #19
Jip
SitePoint Zealot
 
Join Date: Apr 2005
Posts: 102
Is there an issue with MagickRotateImage()in Windows? I can get all the examples to work but that one.
Jip is offline   Reply With Quote
Old Sep 10, 2007, 03:47   #20
ian
SitePoint Community Guest
 
Posts: n/a
what version of php and imagemagick are you using? i got imagemagick 6.3.5 and php 5.0.3 and it's not working.
  Reply With Quote
Old Oct 10, 2007, 00:11   #21
Anthony Thyssen
SitePoint Community Guest
 
Posts: n/a
The link to "IM Examples" in the above is broken, and site has also moved, to the offical imagemagick domain.
http://imagemagick.org/Usage/
Enjoy. -- Anthony Thyssen - IM Examples
  Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 15:02.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved