Page 1 of 1

Passing -geometry results in a black image

Posted: 2013-10-30T03:19:10-07:00
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,

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:33:11-07:00
by fmw42
Perhaps -density and -geometry are competing. You should not need both. Normally one just uses -density.

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:37:33-07:00
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,

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:41:51-07:00
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.

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:44:25-07:00
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?

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:48:06-07:00
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.

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:50:18-07:00
by jessp0110
FC is Fedora Core.
I tried using two versions as stated in my original post. Both fail the same way.

Re: Passing -geometry results in a black image

Posted: 2013-10-30T09:56:49-07:00
by fmw42
What about the Ghostscript version on the various computers

Re: Passing -geometry results in a black image

Posted: 2013-10-30T10:23:02-07:00
by fmw42

Re: Passing -geometry results in a black image

Posted: 2013-10-31T01:08:32-07:00
by jessp0110
Ghostscript versions are the same in both.
Thanks,