Re: figure size on OS X
Scott Prahl <[email protected]> Tue, 16 Feb 2010 21:05:36 -0800
| Newsgroups | gmane.comp.tex.latex.latex2rtf.devel |
|---|---|
| Message-ID | <[email protected]> |
On Feb 16, 2010, at 7:32 PM, Adam R. Maxwell wrote: > > I seem to recall submitting a patch to use /usr/bin/sips for conversion of PDF->PNG on OS X a few years ago. I just noticed that my PDF figure sizes are 2X smaller than they should be in a report I wrote a few weeks ago, and I'm trying to figure out what's going on. Worse, I'm not sure if this is a bug that I didn't notice at the time, or is due to some change in sips. > > I just ran `svn up; make; cd test; make all` on OS X 10.6, and fig_test3 gives me the wrong size image in Figure 1 and Figure 3. If I #undef __APPLE__ in graphics.c and use the gs path, the problem goes away. So it may be best just to remove the sips code, but I'm still trying to figure out what's wrong. > > Running `sips -s format png -s dpiHeight 300 -s dpiWidth 300 ...` on fig_testd.pdf (3 inch square image) produces a 300 dpi PNG that is 450x450 pixels. This just doesn't make sense to me; 900x900 pixels seems more reasonable. Even if the "d" in "dpiHeight" is PS points, that wouldn't be a factor of 2. My guess is that the sips code broke in 2.0.0. I am pretty sure that I just ignored the problem in fig_test3 because I did not want to muck around with the image sizing code any more. Anyhow I commented out the special Apple code and latex2rtf works as it should. Thanks for the bug report. Scott ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev