Support Using php5-imagick on debian

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
renovazio
Posts: 3
Joined: 2012-07-03T02:31:17-07:00
Authentication code: 13

Support Using php5-imagick on debian

Post by renovazio »

Hi to all,

I have a website where clients can upload documents (images or documents of various type [pdf,png,jpg,tiff and others]).
I actually convert any file uploaded in PDF format using this syntax:

Code: Select all

$image = new Imagick();
$image->readImage("file_uploaded.jpg");
$image->setCompression(Imagick::COMPRESSION_JPEG);
$image->setCompressionQuality(60);
$image->setImageFormat('PDF');
$image->writeImage("fileconverted.pdf");
Due to a restriction for italian law, i have to convert files in PDF/A 1b (ISO 19005-1:2005).
I need also to be able to change Document Proprerties in the PDF while converting, like Document Title, Document Subject and other properties.

So is there any way to do this with imagick.


Thanks in advance
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Support Using php5-imagick on debian

Post by magick »

Set your image format to PDFA instead of PDF. The result will fail to validate. We just recently added patches for the result to validate other than the required output intent. That patch is still pending.
renovazio
Posts: 3
Joined: 2012-07-03T02:31:17-07:00
Authentication code: 13

Re: Support Using php5-imagick on debian

Post by renovazio »

Where is published this patch ?
I need also to be able to change Document Proprerties in the PDF while converting, like Document Title, Document Subject and other properties.

Regards
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Support Using php5-imagick on debian

Post by magick »

The patch is not released yet. It will be available within a week as ImageMagick 6.7.8-1. ImageMagick gets the document title from the image filename and saves the PDF with a XMP profile. You'll need some other program to tweak the XMP profile to change or set metadata.
renovazio
Posts: 3
Joined: 2012-07-03T02:31:17-07:00
Authentication code: 13

Re: Support Using php5-imagick on debian

Post by renovazio »

Many Thanks.
Very quick support.
I'm surprised.

Regards.
Post Reply