convert giving "Segmentation fault" as only output and not converting file
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 -
yum --releserver=5.9 upgrade
or
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.