Anyone here know how to use MagickWand with PHP?

  • Thread starter Thread starter Bes
  • Start date Start date

Bes

Bes

Soldato
Joined
18 Oct 2002
Posts
7,318
Location
Melbourne
Hi

I am trying to blob the image being held in memory (after processing) as part of an HTML page, but I cannot get it to work as it is expecting the doctype to be image/gif when it is in fact HTML. All I get is either the image and no HTML, or HTML and junk where the image should be.

This is the problematic line:
PHP:
MagickEchoImageBlob( $resource );

There must be a solution for this, but having searched high and low, I cannot find one?!

Thanks
 
Hmm thanks but.......

I am basically trying to do something where the user can click buttons and stuff to adjust the image properties and preview it in the browser as they go... I am going to struggle to pass what is essentially commands in the GUI from one page to another page that is going to eventually spit out the finished image I think?

I can't use cookies as I envisage the final solution will be used mainly in public Internet Access points/ Internet Cafes with cookies disabled.

Edit:

Ahhh hang on if I did my 'editing suite' and submitted the data as a set of form elements to the PHP page (foo.php containing all my commands and the output image), could I then get this to work?

Thanks
 
Last edited:
Sorry guys I am kind of new to this..

When the user hits submit, I need to have all the stuff passed to the image tag like above in order to get the custom transformations done, but how is this actually done? I mean do I submit all the form values to a javascript, then have them write the tag in or something?

Thanks
 
Back
Top Bottom