-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.1 CE GA2
-
Fix Version/s: 6.2.4 CE GA5, 6.2.X EE, 7.0.0 M3
-
Component/s: Documents & Media
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:12
-
Git Pull Request:
Installed the ImageMagick and ghostcript external services on Liferay Portal Community Edition 6.2 CE GA2.
Now, when i changed the following value in the portal-ext.properties, but it will not change the preview image size.
dl.file.entry.preview.document.max.width=1400
I have found out that Liferay used the following command to convert the image preview in the Documents Library.
[liferay/document_library_pdf_processor-1][GhostscriptImpl:71] Excecuting command '/usr/bin/gs -dBATCH -dSAFER -dNOPAUSE -dNOPROMPT -sFONTPATH/usr/local/bin -sDEVICE=png16m -sOutputFile=/tmp/tomcat7-tomcat7-tmp/liferay/document_thumbnail/43015.1.0.png -dFirstPage=1 -dLastPage=1 -dPDFFitPage -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300 -dDEVICEWIDTH1400 /srv/data/document_library/10157/10805/6502/1.0 '
Here you can see that the parameter "-dDEVICEWIDTH1400" has the right value, but ghostscript can't handle this parameter it must look like this "-dDEVICEWIDTH=1400".
When i used this command directly in the commandline with -dDEVICEWIDTH=1400 it will work how i expect.
- relates
-
LPE-14118 Document Library generating preview with ImageMagick and Ghostscript
-
- Closed
-