{"id":505,"date":"2020-11-22T09:32:00","date_gmt":"2020-11-21T22:32:00","guid":{"rendered":"https:\/\/chuchuva.com\/pavel\/?p=505"},"modified":"2020-09-22T10:25:31","modified_gmt":"2020-09-22T00:25:31","slug":"calling-purejpeg-and-pngcrush-from-far-manager","status":"publish","type":"post","link":"https:\/\/chuchuva.com\/pavel\/2020\/11\/calling-purejpeg-and-pngcrush-from-far-manager\/","title":{"rendered":"Calling PureJPEG and PngCrush from Far Manager"},"content":{"rendered":"\n<p>I like to keep images that I upload to blog and websites small and free of metadata (EXIF etc). PureJPEG and <a href=\"https:\/\/pmt.sourceforge.io\/pngcrush\/\">PngCrush<\/a> are two tools that help me to reduce image file size without affecting quality.<\/p>\n\n\n\n<p>I invoke them from Far Manager using F2 user menu:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"280\" data-attachment-id=\"510\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/11\/calling-purejpeg-and-pngcrush-from-far-manager\/image-9\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-9.png?fit=731%2C339&amp;ssl=1\" data-orig-size=\"731,339\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-9.png?fit=604%2C280&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-9.png?resize=604%2C280&#038;ssl=1\" alt=\"Far Manager user menu\" class=\"wp-image-510\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-9.png?w=731&amp;ssl=1 731w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-9.png?resize=300%2C139&amp;ssl=1 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Here&#8217;s how to configure it:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Press F2 to open user menu.<\/li><li>Press Insert key. Select &#8216;Insert Command&#8217;.<\/li><li>Enter &#8216;j&#8217; as hotkey, &#8216;PureJpeg&#8217; as label and the following as command:<br>&#8220;C:\\Small Programs\\PureJpeg\\purejpeg.exe&#8221; &#8220;!.!&#8221;<\/li><li>Press OK to save<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"314\" data-attachment-id=\"511\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/11\/calling-purejpeg-and-pngcrush-from-far-manager\/image-10\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?fit=1203%2C626&amp;ssl=1\" data-orig-size=\"1203,626\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?fit=604%2C314&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?resize=604%2C314&#038;ssl=1\" alt=\"Far Manager command to invoke PureJPEG\" class=\"wp-image-511\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?resize=1024%2C533&amp;ssl=1 1024w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?resize=768%2C400&amp;ssl=1 768w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-10.png?w=1203&amp;ssl=1 1203w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Far Manager replaces &#8220;!.!&#8221; with selected file name in double quotes.<\/p>\n\n\n\n<p>I keep small apps and tools in &#8216;Small Programs&#8217; folder. You might have them somewhere else.<\/p>\n\n\n\n<p>Follow the same procedure for PNG Crush. Use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"C:\\Small Programs\\Pngcrush\\pngcrush.exe\" -ow \"!.!\"<\/code><\/pre>\n\n\n\n<p>Note the -ow switch &#8211; it tells pngcrush to overwrite the source PNG file.<\/p>\n\n\n\n<p>Now you can compress an image file losslessly by simply selecting it in Far Manager, pressing F2 and selecting PureJpeg or PngCrush.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like to keep images that I upload to blog and websites small and free of metadata (EXIF etc). PureJPEG and PngCrush are two tools that help me to reduce image file size without affecting quality. I invoke them from Far Manager using F2 user menu: Here&#8217;s how to configure it: Press F2 to open &hellip; <a href=\"https:\/\/chuchuva.com\/pavel\/2020\/11\/calling-purejpeg-and-pngcrush-from-far-manager\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Calling PureJPEG and PngCrush from Far Manager<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[9],"class_list":["post-505","post","type-post","status-publish","format-standard","hentry","category-software","tag-far-manager"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":0,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}