<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p><span style="font-size:12.0pt;color:black">Hello, we've hit an odd issue with a PDF being slightly stretched when converting. For reference here is the PDF and resulting output from commands below
<a href="https://www.dropbox.com/sh/iandpzudjqw44h1/AADKv56viK8I6YOIjnPkzZWZa?dl=0">
https://www.dropbox.com/sh/iandpzudjqw44h1/AADKv56viK8I6YOIjnPkzZWZa?dl=0</a><o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">If you load the photoshop file in one browser tab and zoom to 100%, then load any of the other test PNGs in another tab and flip back and forth between photoshop and the test you will see elements on the PDF shift
and some of the clarity get lost. <o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">For example: compare photoshop-export.png with test1-1.png (our standard way of exporting PDFs). When you flip back and forth between the 2 images you will notice the blue sky square shifting (among other things),
the woman's forehead gets blurred out a bit, not as many freckles, and the fonts losing some clarity. The "o" in "This season" gets a flat top.<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">Any idea of what could be causing this or how I could fix it? Below are the commands I used to test things with<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">First, I exported the PDF from photoshop as my reference using a 1300 width<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">[chris@ubuntu resizing] $ identify photoshop-export.png
<br>
photoshop-export.png PNG 1300x1826 1300x1826+0+0 8-bit sRGB 1.876MB 0.000u 0:00.000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Our normal routine for exporting images<br>
[chris@ubuntu resizing] $ pdftoppm -png -scale-to-x 1300 -scale-to-y -1 example.pdf test1<br>
[chris@ubuntu resizing] $ identify test1-1.png <br>
test1-1.png PNG 1300x1828 1300x1828+0+0 8-bit sRGB 1.397MB 0.000u 0:00.000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Alternate method<br>
[chris@ubuntu resizing] $ pdftoppm -png -scale-to 1826 example.pdf test2<br>
[chris@ubuntu resizing] $ identify test2-1.png <br>
test2-1.png PNG 1300x1826 1300x1826+0+0 8-bit sRGB 1.393MB 0.000u 0:00.000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Just kinda playing to see<br>
[chris@ubuntu resizing] $ pdftoppm -png -scale-to 1828 example.pdf test3<br>
[chris@ubuntu resizing] $ identify test3-1.png <br>
test3-1.png PNG 1301x1828 1301x1828+0+0 8-bit sRGB 1.397MB 0.000u 0:00.000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;color:black">Comparing with pdfimages<br>
[chris@ubuntu resizing] $ pdfimages -png example.pdf test4<br>
[chris@ubuntu resizing] $ convert test4-000.png -geometry 1300x test4-sized.png<br>
[chris@ubuntu resizing] $ identify test4-sized.png <br>
test4-sized.png PNG 1300x1827 1300x1827+0+0 8-bit sRGB 1.516MB 0.000u 0:00.000<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>