Passing -geometry results in a black image

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.
Post Reply
jessp0110
Posts: 6
Joined: 2013-10-30T03:03:58-07:00
Authentication code: 6789

Passing -geometry results in a black image

Post by jessp0110 »

Hello dev team,

On:
# cat /etc/issue
Ubuntu 12.04.3 LTS \n \l

Using both Version: ImageMagick 6.6.9-7 which is the official version in the repos, as well as 6.5.1-2 Q16, this command fails:
# /home/jess/bin/convert -limit memory 512 -density 400x400 -geometry $ANY_NUMBER /path/to/source.pdf /tmp/jessport1.jpg

However, this one results in a successful conversion:
# /usr/bin/convert -limit memory 512 -density 400x400 /path/to/source.pdf /tmp/jessport0.jpg

On FC11, using 6.5.1-2 the first command also completes successfully.

Please let me know if you need an strace output or want me to try to use a debug binary with control outputs.
I can also provide the source file, I don't see an option to attach a file here though..

Thank you in advance,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Passing -geometry results in a black image

Post by fmw42 »

Perhaps -density and -geometry are competing. You should not need both. Normally one just uses -density.
Last edited by fmw42 on 2013-10-30T09:40:45-07:00, edited 1 time in total.
jessp0110
Posts: 6
Joined: 2013-10-30T03:03:58-07:00
Authentication code: 6789

Re: Passing -geometry results in a black image

Post by jessp0110 »

Hello,

In the man page I see:
-geometry geometry preferred size or location of the image

So, I am not quite sure why you say it will take no affect but regardless, why does it cause this result? and why doesn't it on FC?
Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Passing -geometry results in a black image

Post by fmw42 »

I have never seen -geometry used that way. But a quick test does show it has an effect on the size of the pdf using IM 6.8.7.3. Normally it is just a setting for use with -composite. But as a setting, I suppose it could affect the size of a pdf when used before the reading of the pdf.

Perhaps -density and -geometry are competing. You should not need both. Normally one just uses -density.
jessp0110
Posts: 6
Joined: 2013-10-30T03:03:58-07:00
Authentication code: 6789

Re: Passing -geometry results in a black image

Post by jessp0110 »

Hi,

I am using this as part of a pretty extensive conversion engine which I would really prefer not to change at the moment.
My question is still valid, I think: why does it work well on FC with the same exact IM version?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Passing -geometry results in a black image

Post by fmw42 »

What is FC? I suspect that there may be issues with the version of IM that you are using that fails.

Perhaps different versions of Ghostscript.
jessp0110
Posts: 6
Joined: 2013-10-30T03:03:58-07:00
Authentication code: 6789

Re: Passing -geometry results in a black image

Post by jessp0110 »

FC is Fedora Core.
I tried using two versions as stated in my original post. Both fail the same way.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Passing -geometry results in a black image

Post by fmw42 »

What about the Ghostscript version on the various computers
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Passing -geometry results in a black image

Post by fmw42 »

jessp0110
Posts: 6
Joined: 2013-10-30T03:03:58-07:00
Authentication code: 6789

Re: Passing -geometry results in a black image

Post by jessp0110 »

Ghostscript versions are the same in both.
Thanks,
Post Reply