Hello,
Thanks for your response.
The file exists, and it is a valid .pdf - when downlaoded it opens fine
on my windows desktop.
Running that command produced this:
root@server1:~# convert -density 150 -define pdf:use-cropbox=true
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf
+profile '*' -quality 90
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png
convert-im6.q16: no images defined
`/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png'
@ error/convert.c/ConvertImageCommand/3229.
root@server1:~#
I can try to adjust the settings for Image Magik . If you have any more
ideas about the problem, please let me know.
Can someone also running 6.3.0 check that this functionality - uploading
a 385 Kb .pdf file works ?
I have tried this on both a test server with 2 V cores and 4 GB ram as
well as a production server with more than enough cpu and memory (RAm)
and both give the same error (on the larger production server I saw a
different error message with more information about unable to allocate
memory. When uploading the file, it seems to stall at 50% converting):
THERE WERE ERRORS WHILE PROCESSING THE FILE
EXIT VALUE
CONVERSION MESSAGES
1
process: convert PDF to images command: convert -density 150 -define
pdf:use-cropbox=true
/opt/om_data/upload/files/e9d51059-d88a-49c5-a45e-ef01ef594a2b/e9d51059-d88a-49c5-a45e-ef01ef594a2b.pdf
+profile '*' -quality 90
/opt/om_data/upload/files/e9d51059-d88a-49c5-a45e-ef01ef594a2b/page-%04d.png
exception: null error: convert-im6.q16: cache resources exhausted
`/tmp/magick-UGYVgAX4kMaiZEYbG_UUxvTtwTVd8DEa4' @
error/cache.c/OpenPixelCache/4095. convert-im6.q16: cache resources
exhausted
`/opt/om_data/upload/files/e9d51059-d88a-49c5-a45e-ef01ef594a2b/page-%04d.png'
@ error/cache.c/OpenPixelCache/4095. convert-im6.q16: memory allocation
failed
`/opt/om_data/upload/files/e9d51059-d88a-49c5-a45e-ef01ef594a2b/page-%04d.png'
@ error/png.c/WriteOnePNGImage/9144. convert-im6.q16: No IDATs written
into file
`/opt/om_data/upload/files/e9d51059-d88a-49c5-a45e-ef01ef594a2b/page-0000.png'
@ error/png.c/MagickPNGErrorHandler/1642. exitValue: 1 optional: false
out:
Does this help?
Ed
On , Maxim Solodovnik wrote:
Hello Ed,
I guess there is something wrong with PDF and/or ImageMagic ....
I would check
1) file
"/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf"
exists and it is valid PDF
2) try to run ```
convert -density 150 -define pdf:use-cropbox=true
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf
+profile '*' -quality 90
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png
``` from terminal at OM server and check the output :)
On Tue, 10 Jan 2023 at 16:41, <i...@bureau-de-poste.net> wrote:
Hi,
Using 6.3.0 : when I try to upload a very small .pdf file, I receive
this error (and it does not display on the Whiteboard):
THERE WERE ERRORS WHILE PROCESSING THE FILE
FILE IS NOT FOUND
EXIT VALUE
CONVERSION MESSAGES
1
process: convert PDF to images command: convert -density 150 -define
pdf:use-cropbox=true
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf
+profile '*' -quality 90
/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png
exception: null error: convert-im6.q16: no images defined
`/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png'
@ error/convert.c/ConvertImageCommand/3229. exitValue: 1 optional:
false out:
Is this a bug?
Best,
Ed
--
Best regards,
Maxim