[TYPO3-dev] PDF Thumb creation
bernd wilke
t3ng at bernd-wilke.net
Tue Sep 22 08:09:41 CEST 2015
Am 21.09.15 um 23:03 schrieb Johannes Mueller:
> Hi,
>
> I'm trying to get a jpeg from a pdf via the following:
>
> $file = $fileReference->getOriginalResource()->getOriginalFile();
> $settings['additionalParameters'] = '-quality 80';
> $settings['fileExtension'] = 'jpg';
> $settings['width'] = $width;
> $file->process(\TYPO3\CMS\Core\Resource\ProcessedFile::CONTEXT_IMAGECROPSCALEMASK
>
> All is good and the file gets created. But around the generated image a
> thick black border is visible.
> I uploaded an example generated file here:
> http://monkeyandmind.de/pics/black.jpg
>
> Any ideas?
just ideas:
is it a fixed 'border'? does it depend on the given width?
have you tried to set a white background?
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-dev
mailing list