{"id":1449,"date":"2010-12-16T15:18:11","date_gmt":"2010-12-16T23:18:11","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=1449"},"modified":"2010-12-16T15:19:20","modified_gmt":"2010-12-16T23:19:20","slug":"add-png-support-to-wordpress-plugin-image-shadow","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2010\/12\/add-png-support-to-wordpress-plugin-image-shadow\/","title":{"rendered":"Add PNG Support to WordPress Plugin &#8220;Image Shadow&#8221;"},"content":{"rendered":"<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/image-shadow\/\">Image Shadow<\/a> plugin for WordPress works pretty well.  Unfortunately, it only adds shadows to JPEG images.  PNG images can be added very easily, but they will be converted to JPEG format in the image cache.  This isn&#8217;t optimal for things like screenshots, but the images still look good enough for my needs.<\/p>\n<p>Edit <tt>wp-content\/plugins\/image-shadow\/image-shadow.php<\/tt>.  Find this line:<\/p>\n<blockquote>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if (!preg_match('\/\\.(jpeg|jpg|jpe)$\/i', $src)) return $src;<\/pre>\n<\/blockquote>\n<p>Add <tt>|png<\/tt> to the match expression:<\/p>\n<blockquote>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if (!preg_match('\/\\.(jpeg|jpg|jpe|png)$\/i', $src)) return $src;<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The Image Shadow plugin for WordPress works pretty well. Unfortunately, it only adds shadows to JPEG images. PNG images can be added very easily, but they will be converted to JPEG format in the image cache. This isn&#8217;t optimal for &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2010\/12\/add-png-support-to-wordpress-plugin-image-shadow\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,297],"tags":[],"class_list":["post-1449","post","type-post","status-publish","format-standard","hentry","category-technology","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=1449"}],"version-history":[{"count":3,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1449\/revisions"}],"predecessor-version":[{"id":1452,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1449\/revisions\/1452"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=1449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=1449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=1449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}