[TYPO3-english] Convert pdf to jpg ($imageProc->imageMagickConvert): first page not converted

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.com
Thu Mar 11 13:44:54 CET 2010


Hello,

In an extension, I convert a PDF on the fly to jpgs:

$convert=$imageProc->imageMagickConvert(
  'uploads/tx_bendoobo/'.$this->conf['pdf_file'],
			$this->conf['file_format'],
			$this->conf['width'],
			$this->conf['height'],
			$this->conf['IMparams'],
			$i,
			"",
			1);

However, the first page ($i=0) is not converted properly to a jpg, it 
creates several corrupted jpgs, the rest of the pages are converted 
correctly.

I am using gm and im6 on a Debian.

Any ideas?

Thanks in advance!

Regards,

Bert
BENDOO


More information about the TYPO3-english mailing list