Can't convert pdf file to jpg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Locked
s0lut1on
Posts: 5
Joined: 2020-04-14T18:16:04-07:00
Authentication code: 1152

Can't convert pdf file to jpg

Post by s0lut1on »

I'm have build image magick++ from source and using Ghostscript 9.27
When i run command:
convert Sample1.pdf test.jpg
And terminal return error:
convert: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1888
Can anyone tell me where i'm wrong ?

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Can't convert pdf file to jpg

Post by snibgo »

Does this happen with all PDF files, or just this one?

Perhaps the PDF file has corruption.
snibgo's IM pages: im.snibgo.com

s0lut1on
Posts: 5
Joined: 2020-04-14T18:16:04-07:00
Authentication code: 1152

Re: Can't convert pdf file to jpg

Post by s0lut1on »

It have with all PDF files. Even with PDF file I'm convert from image

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Can't convert pdf file to jpg

Post by snibgo »

What version of IM? Please post the text output from "convert -version".
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can't convert pdf file to jpg

Post by fmw42 »

Post your PDF file also.

s0lut1on
Posts: 5
Joined: 2020-04-14T18:16:04-07:00
Authentication code: 1152

Re: Can't convert pdf file to jpg

Post by s0lut1on »

This is convert version:
Version: ImageMagick 7.0.10-7 Q16 x86_64 2020-04-14 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5)
Delegates (built-in): fontconfig freetype pangocairo png x zlib

And this is my PDF file:
https://drive.google.com/file/d/1uodGtU ... sp=sharing

s0lut1on
Posts: 5
Joined: 2020-04-14T18:16:04-07:00
Authentication code: 1152

Re: Can't convert pdf file to jpg

Post by s0lut1on »

When I try convert to jpg file it still genarate file but can't read file. But when I convert to png file. File can read but still getting error.

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can't convert pdf file to jpg

Post by fmw42 »

To read PDF files, you need to install Ghostscript as a delegate to Imagemagick. It is not listed in your Delegates. Nor is JPG. So you cannot read or write JPG files either.

See
https://imagemagick.org/download/delegates/

Install all the delegates you need or want with Imagemagick and then try again.

s0lut1on
Posts: 5
Joined: 2020-04-14T18:16:04-07:00
Authentication code: 1152

Re: Can't convert pdf file to jpg

Post by s0lut1on »

I have run configure ImageMagick and DELEGATES:
DELEGATES = mpeg fontconfig freetype pango png ps x zlib

And Delegates config:
Delegate program configuration:
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (9.22)

but i when i run convert -version still the same
Do i need to rebuild anything except ImageMagick ?

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Can't convert pdf file to jpg

Post by snibgo »

Your PDF converts with no complaint for me.

Your problem is that your IM has been built with no delegates. You should build delegates, then re-build IM.
snibgo's IM pages: im.snibgo.com

Locked