{"id":27,"date":"2005-01-27T16:02:43","date_gmt":"2005-01-27T21:02:43","guid":{"rendered":"\/?p=27"},"modified":"2005-01-27T16:02:43","modified_gmt":"2005-01-27T21:02:43","slug":"filter-media-ugly-jpegs-tiffs-and-java-advanced-imaging","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2005\/01\/27\/filter-media-ugly-jpegs-tiffs-and-java-advanced-imaging\/","title":{"rendered":"filter-media, ugly JPEGS, TIFFs, and Java Advanced Imaging"},"content":{"rendered":"<p>I learned way more about java today than I wanted to, but it was for a   good cause.    <\/p>\n<p>I had a mess of images scanned by our Geology Department and imported   into Dspace.    Filter-media produced some ugly thumbnails for these (and only these)   images:    <\/p>\n<div style=\"margin-left: 40px\">original &#8212; http:\/\/www.uvm.edu\/~waw\/archives\/00000041.jp  <br \/>\nThumb    &#8212; http:\/\/www.uvm.edu\/~waw\/archives\/00000041.jpg.jpg    \n<\/div>\n<p>\nMeanwhile, all these Geology JPEGs had high-res TIFF files associated   with them, too. I wanted TIFF thumbnails.    So I started hacking away at JPEGFilter.java    And I discovered &quot;<a href=\"http:\/\/java.sun.com\/products\/java-media\/jai\/index.jsp\">Java Advanced Imaging<\/a>&quot; &#8212;&nbsp;    I downloaded &quot;JavaTM Advanced Imaging 1.1.2 CLASSPATH install&quot; and   &quot;Java Advanced Imaging Image I\/O Tools 1.0&quot;   <\/p>\n<p>Installed the jars and .so files in dspace-1.2.1beta4-source\/lib    Added some &quot;import&quot; statements        and 3 lines of new code    to JPEGFilter.java , and like magic, two birds killed with one stone<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I learned way more about java today than I wanted to, but it was for a good cause. I had a mess of images scanned by our Geology Department and imported into Dspace. Filter-media produced some ugly thumbnails for these &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2005\/01\/27\/filter-media-ugly-jpegs-tiffs-and-java-advanced-imaging\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41847,6517,8025,8026],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-dspace","category-projects","category-scriptingprogramming","category-systems-and-servers"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}