{"id":6124,"date":"2015-01-18T16:36:47","date_gmt":"2015-01-19T00:36:47","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?p=6124"},"modified":"2015-01-18T18:29:02","modified_gmt":"2015-01-19T02:29:02","slug":"a-better-way-to-reduce-file-size-in-preview","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2015\/01\/a-better-way-to-reduce-file-size-in-preview\/","title":{"rendered":"A Better Way to Reduce File Size in Preview"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_1MB_default_resize_unacceptable.jpg\" alt=\"preview_1MB_default_resize_unacceptable\" style=\"float: right; margin: 5px;\"\/>It&#8217;s that time of year again, time to make the annual family calendar using iPhoto. Every year I learn something new about the best way to do this.  I couldn&#8217;t have been more pleased when Apple decided to let us use the same database for both Aperture and iPhoto so I don&#8217;t have to copy photos from one to the other to make my calendar.  My process is to keyword photos with calendar_2015 as I scroll through all photos from 2014 in Aperture and then make a smart album for that keyword.  That makes it easy to open up iPhoto, navigate to the smart album and create my calendar from there.  <\/p>\n<p>After I spend a few hours arranging them all, I print the whole thing to PDF and send it off to Steve and my kids to see if they have any objections or would like to add in any different photos.  Here&#8217;s where this year&#8217;s learning came in.  The calendar when printed to PDF is over 200MB!  Even with Apple&#8217;s new Mail Drop service that lets you email giant files that end up as links, that seemed just a tad overboard for my needs.<\/p>\n<p><!--more--><br \/>\nA few years back someone tipped me off to the cool option in Apple&#8217;s Preview app that lets you save your PDFs and other documents to a lower quality. If you open up a document in Preview, simply choose Save As, and under the completely unintuitive pulldown entitled Quartz Filter, you can choose from several options, one of which is Reduce File Size.  Hot dogs, that sounds just like what I needed.<\/p>\n<p>I opened my newly reduced file and instead of 200MB, it was only 945KB.  Awesome, right?  Wrong!  I opened it and the images looked positively dreadful. I couldn&#8217;t possibly send the PDF out this way.  I went hunting to try and find a way to change the behavior to create something maybe in between 200MB and less than 1MB.<\/p>\n<p>I came across a Mac OS X Hints forum on Macworld.com with a post by someone identified only as zpjet that had exactly the answer I was looking for posted back in 2012.  I followed the link on the name but Macworld hasn&#8217;t kept that part of the site up any longer so I wasn&#8217;t able to identify the author to give credit.  Then I had an idea, maybe zpjet had kept their name when Twitter came out.  Sure enough I found Josef Habr on Twitter <a href=\"http:\/\/twitter.com\/zpjet\" target=\"_blank\">@zpjet<\/a>. Ok, now that I&#8217;ve given Josef credit, let me tell you about his clever solution.<\/p>\n<p>Josef figured out that the Quartz filters are stored in the System\/Library\/Filters directory. He opened up the one entitled &#8220;Reduce File Size&#8221; and found the parameters inside the text file to set the compression quality and the maximum image size. He made three new files by copying the original, and fiddled with the settings until he found values that would create a good, better, and best option. He also figured out where in the text file the name was stored for the menu choice within preview. He modified that name for each file so he could tell them apart. He documented the compression quality numbers and the image size maximum all in the forum post. I&#8217;m reproducing his post right here on podfeet.com just in case MacWorld shuts down the discussion forum.<\/p>\n<p>Compression Quality:<\/p>\n<ul>\n<li>Good: 0.25<\/li>\n<li>Better: 0.5<\/li>\n<li>Best: 0.75<\/li>\n<\/ul>\n<p>ImageSizeMax: <\/p>\n<ul>\n<li>842 (that&#8217;s A4 at 72dpi)<\/li>\n<li>1684 (A4 at 144dpi)<\/li>\n<li>3508 (A4 at 300dpi)<\/li>\n<\/ul>\n<p>I decided that this called out for a Clarify tutorial so  you can see where all of these values go and especially the Name Key value.  I made the three extra files as Josef suggested, and put copies back in the Filters folder.  I opened up my Calendar and sure enough I now have good, better and best versions of the Quartz filter for Reduce File Size.  Remember my original was 200MB, the good one is 2.5MB and the images look a bit fuzzy, the Better one is 7.7MB and the images look just fine for this purpose, while the Best one looks a smidge better at 9.8MB.<\/p>\n<p>In the shownotes I put a screenshot of the same image five times.  The default Preview resize, then good, better and best according to Josef&#8217;s research, and then finally the giant 200MB file version that came out of iPhoto.  To be honest, the better or best picture is pretty indistinguishable to my eyes vs. the 200MB version.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_1MB_default_resize.png\" alt=\"preview_1MB_default_resize\" style=\"margin: 5px;\"\/><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_3MB_good_resize.png\" alt=\"preview_3MB_good_resize\" style=\"margin: 5px;\"\/><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_8MB_better_resize.png\" alt=\"preview_8MB_better_resize\" style=\"margin: 5px;\"\/><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_10MB_best_resize.png\" alt=\"preview_10MB_best_resize\" style=\"margin: 5px;\"\/><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2015\/NC_2015_01_18\/preview_200MB_no_resize.png\" alt=\"preview_200MB_no_resize\" style=\"margin: 5px;\"\/><br \/>\n<br \/>\nThe great thing about Josef&#8217;s tip is that  you an mess with the parameters yourself and see what works for you.  I wrote to Josef on Twitter and we had a nice chat.  He kind of burst my bubble when he pointed out that someone back in the forum had pointed out that you don&#8217;t have to edit the text files &#8211; you can change the default settings for Reduce File Size inside the Color Sync Utility. This is a better way to do it because the filters will be stored in your user Library instead of the System Library. If you upgrade your OS, you won&#8217;t lose your filters.<\/p>\n<p>I took a look at the Color Sync app and sure enough you can duplicate the original Reduce File Size filter, rename it, change the default settings to Josef&#8217;s recommendations or to anything you like.  Before using Color Sync, my user Library did not have a Filters folder, but after I duplicated one inside Color Sync I did have the Filters folder in my user Library.<\/p>\n<p>I appreciate that Josef figured out some good settings to use as a starting point and even more that he pointed me to an easier way to do it than editing the System-level filters with a text file.  <\/p>\n<p>Of course I decided to make a Clarify tutorial on this but many thanks to Josef for figuring this out and making some recommendations.  You can find his website at <a href=\"http:\/\/macspeaks.com\/\" target=\"_blank\">http:\/\/macspeaks.com\/<\/a>.  MacSpeaks is a cool utility that takes text input and pronounces it in different languages and voices.  I actually used it already &#8211; asking Josef how to pronounce his name with a Czechoslovakian accent!  <\/p>\n<p>I put a <a href=\"https:\/\/www.podfeet.com\/blog\/how-to-reduce-the-file-size-of-a-pdf-using-preview\/\" target=\"_blank\">link in the show notes to the Clarify tutorial<\/a> on how to do this yourself, or you can look for it under Mac Tutorials in the left side bar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s that time of year again, time to make the annual family calendar using iPhoto. Every year I learn something new about the best way to do this. I couldn&#8217;t have been more pleased when Apple decided to let us use the same database for both Aperture and iPhoto so I don&#8217;t have to copy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147],"tags":[],"class_list":["post-6124","post","type-post","status-publish","format-standard","hentry","category-blog-posts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/6124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=6124"}],"version-history":[{"count":2,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/6124\/revisions"}],"predecessor-version":[{"id":6132,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/6124\/revisions\/6132"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=6124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=6124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=6124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}