phMagick->convert()
Use this function to convert an image to another format
$p = new phmagick('source.jpg', 'destination.png'); $p->convert();
This example converts source.jpg to destination.png, optionaly setImageQuality() can be used to specify the quality of the new image
hi again
can i convert pdf’s to gif’s?
thanks!
@johny
I’ve never tried converting pdf to gif’s, but there is no reason why it can’t be done
conversion to pdf works! pdf-to-png gives me smallest output size.
but pdf’s larger than about 200 Kb come out distorted. is there any way to control the resolution, color depth, or any other conversion options?
thanks!
i’m also finding very large pdf’s (600 Kb, maybe less) don’t get processed at all.
Hello,how can i convert raw format to jpg and cr2 to jpg? It is possible with phMagick ?
@Elay,
You can convert to any of imagemagick supported formats
please see http://www.imagemagick.org/script/formats.php
Hi! Whenever converting a cr2 image to jpg with phMagick it always darkens the result image. Is there any way to avoid the darkening?
@des-
it only happens with jpg?
ps: you might get more information on imagemagick site
Tried to convert CR2 to TIF (on 3 different files), same thing happened.
@des
I’m afraid I can not be of much help, have you tried the imagemagick forums?
Have you run phMagick in debug mode, maybe imagemagick is complaining about the image format or some values the delegate can not support
Muito bom, parabéns e muito obrigado. Como diria Vinicius: “se todos fossem iguais a você”, Colaborativo e generoso em compartilhar seus conhecimentos com aqueles que ainda não sabem.
SVG to PNG/JPEG/GIF support?
It should be supported as long as you have the correct libraries, please check imagemagick.org
Is there any option to add more parameters? For instance I want to convert an image from png to -ordered-dither h4x4a bitmap, as specified here – http://www.imagemagick.org/Usage/quantize/#halftone, for use with a thermal printer. Thanks.
el datelle que descargue el archivo lo intente de ejecutar pero no realiza ninguna accion como la de cambiar formato o rotar