{"id":214,"date":"2006-01-29T17:59:00","date_gmt":"2006-01-29T17:59:00","guid":{"rendered":"http:\/\/www.bolis.com\/testwp\/story\/jpeg-image-cropping\/"},"modified":"2016-11-27T08:43:48","modified_gmt":"2016-11-27T08:43:48","slug":"jpeg-image-cropping","status":"publish","type":"post","link":"http:\/\/www.bolis.com\/amillar\/jpeg-image-cropping\/","title":{"rendered":"JPEG image cropping"},"content":{"rendered":"\n<p>JPEG images are a good data format for photographs because they contain data that is compressed in a manner optimized for the human eye.  However, it is a &#8220;lossy&#8221; compression, meaning that if they are unencoded and re-encoded several times, the image will lose quality.<\/p>\n<p>Sometimes all I want to do is crop a picture, to chop off uninteresting areas of the photo.  Several tools can do this by working on the native JPEG data, meaning there is no loss of information from re-encoding the image.<\/p>\n<p>The command-line tool <a href=\"http:\/\/jpegclub.org\">jpegtran<\/a> is designed to make a number of transformations to JPEG pictures with no data loss, including rotation and cropping.  However, being a command-line tool, it requires you to specify x and y coordinates to crop.  It is not convenient to visually pick a section of a picture to save.<\/p>\n<p>A Windows application called <a href=\"http:\/\/jpegclub.org\">jpegcrop<\/a> gives you the ability to display a JPEG picture on the screen and select the portion to crop out.  It saves the cropped section as a new file, or you can overwrite the original file if you prefer.  It even preserves the EXIF metadata of the original file.  For Linux, I have not found a native graphical application like Jpegcrop, but Jpegcrop for Windows runs just fine on Linux using <a href=\"http:\/\/www.winehq.org\">Wine<\/a>.<\/p>\n<ul class=\"links inline\">\n<li class=\"taxonomy_term_48 first\"><a href=\"\/amillar\/category\/primary-topic\/software\" rel=\"tag\" title=\"\">Software<\/a><\/li>\n<li class=\"taxonomy_term_11\"><a href=\"\/amillar\/topic\/camera\" rel=\"tag\" title=\"Digital cameras are great devices.  Here are my experiences and tips for using digital cameras with Linux.\">Camera<\/a><\/li>\n<li class=\"taxonomy_term_17\"><a href=\"\/amillar\/topic\/computers\" rel=\"tag\" title=\"Computers are a significant hobby of mine, as well as being the primary focus of my career.  I enjoy many aspects of it, especially making older, marginalized, or obsolete technology do things people would not expect was still doable.  In some ways I am sort of a &quot;bottom feeder in the cyberspace food chain&quot;.\">Computers<\/a><\/li>\n<li class=\"taxonomy_term_34\"><a href=\"\/amillar\/topic\/linux\" rel=\"tag\" title=\"\">Linux<\/a><\/li>\n<li class=\"taxonomy_term_33 last\"><a href=\"\/amillar\/topic\/software\" rel=\"tag\" title=\" \">Software<\/a><\/li>\n<\/ul>\n<p>        Submitted by amillar on Sun, 2006-01-29 09:59                                <\/p>\n","protected":false},"excerpt":{"rendered":"<p>JPEG images are a good data format for photographs because they contain data that is compressed in a manner optimized for the human eye. However, it is a &#8220;lossy&#8221; compression, meaning that if they are unencoded and re-encoded several times, the image will lose quality. Sometimes all I want to do is crop a picture, &hellip; <a href=\"http:\/\/www.bolis.com\/amillar\/jpeg-image-cropping\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;JPEG image cropping&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[12],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-project","tag-software"],"acf":[],"_links":{"self":[{"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":1,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":288,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/posts\/214\/revisions\/288"}],"wp:attachment":[{"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bolis.com\/amillar\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}