{"id":535,"date":"2006-06-21T16:25:36","date_gmt":"2006-06-21T20:25:36","guid":{"rendered":"http:\/\/www.uvm.edu\/~waw\/blog\/?p=535"},"modified":"2006-06-21T16:25:36","modified_gmt":"2006-06-21T20:25:36","slug":"libjpeg-libpng-zlib-freetype-libgd-and-gdpm","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2006\/06\/21\/libjpeg-libpng-zlib-freetype-libgd-and-gdpm\/","title":{"rendered":"libjpeg, libpng, zlib, freetype, libgd, and GD.pm"},"content":{"rendered":"<p>Downloaded, configured, and installed on my Mac<\/p>\n<ul>\n<li>libjpeg<\/li>\n<li>libpng<\/li>\n<li>zlib<\/li>\n<li>freetype<\/li>\n<li>libgd<\/li>\n<li>GD.pm<\/li>\n<\/ul>\n<p>over and over agan, it seems.<\/p>\n<p>But it was not for naught: I finaly got the Landscape Change Thumbnails\/Zoom script to process all 12,000 files. <\/p>\n<p>The Zoomify part was a bug in the ZoomifyBase.py code. There was a line<\/p>\n<p>&nbsp;&nbsp;&nbsp; tempImage = imageRow.resize((imageWidth\/2, imageHeight\/2), PIL.Image.ANTIALIAS)<\/p>\n<p>well, if imageWidth or imageHeight was &lt;=1, el bombo. Changed to<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; halfWidth=max(1,(imageWidth\/2))<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; halfHeight=max(1,(imageHeight\/2))<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempImage = imageRow.resize((halfWidth, halfHeight), PIL.Image.ANTIALIAS)<\/p>\n<p>Much happier now<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Downloaded, configured, and installed on my Mac libjpeg libpng zlib freetype libgd GD.pm over and over agan, it seems. But it was not for naught: I finaly got the Landscape Change Thumbnails\/Zoom script to process all 12,000 files. The Zoomify &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2006\/06\/21\/libjpeg-libpng-zlib-freetype-libgd-and-gdpm\/\">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":[6517,8026],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-projects","category-systems-and-servers"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/535","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=535"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}