convert giving "Segmentation fault" as only output and not converting file
Hi guys. We have a process that runs a convert command line and every once it fails with a "Segmentation fault", but even if i throw in a -verbose that's all it says.
Any ideas how to tell what in the PDF that it's trying to convert to a PNG that it doesn't like? |
Try validating the file:
http://www.validatepdfa.com/ |
I used Acrobat to confirm it wasn't pdf/a, but none of them are. Although if I use acrobat to convert it to pdf/a compliant, convert then works on it.
|
What version of "convert" do you use? Maybe it need upgrading (with libraries).
|
What "Convert" program ?
imagemagick ? if so what version ? or some other program ? ghostscript ? or netpbm ? and what IS the command you are using ? there is no useful information in the first post |
here's the convert --version
Version: ImageMagick 6.2.8 03/31/08 This is running on RHEL 5.4. Unfortunately on this server yum no longer pulls updates so it's kinda stuck in time in that regard. The command I'm using is /usr/bin/convert -scale 145 -depth 8 then the two file names, which works 95% of the time, but every once in a while we get segmentation errors, so wondering if there's a way to have convert tell me what it's failing on, or some trick to get it to still convert. Does ghostscript even have a command named "convert"? Sorry for not including more info on the how can I get more details out of convert question, thought it was a general enough output question that more details would be just fluff and get in the way. |
It is very old. It was 7 years ago and many bug fixes has been done since then. I am afraid that without updating you will not force this tool to work better. For converting PDF to image format you can also use "pdftocairo" from Poppler tools, also Gimp can do that.
|
I wouldn't even know how to manually update it, so I guess i'll try to tackle the originating PDFs. It has to be something odd with the PDFs as it happens rarely.
|
for RHEL 5.4 to the current older RHEL 5.9
1) buy the required support contract 2) register the install with redhat 3) Code:
su - port it over to CentOS BUT CentOS recommends doing RHEL 5.9 to CentOS 5.9 ( or rhel6.4 to CentOS 6.4) a fully updated install of red hat , to the current updated centos now you might be able to use the "CentOS" historical archive "The Vault" to update 5.4 to the lase update of 5.4 then upgrade cent to 5.9 |
All times are GMT -5. The time now is 06:00 PM. |