Skip to content

Commit

Permalink
Simplified comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Jan 24, 2015
1 parent 85f7ad4 commit d3af87b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,11 @@ public static String getPhotonImageUrl(String imageUrl, int width, int height, Q
// don't use with GIFs - photon breaks animated GIFs, and sometimes returns a GIF that
// can't be read by BitmapFactory.decodeByteArray (used by Volley in ImageRequest.java
// to decode the downloaded image)
// ex: http://i0.wp.com/lusianne.files.wordpress.com/2013/08/193.gif?resize=768,320
if (imageUrl.endsWith(".gif")) {
return imageUrl;
}

// if this is an "mshots" url, skip photon and return it with a query that sets the width/height
// (these are screenshots of the blog that often appear in freshly pressed posts)
// see http://wp.tutsplus.com/tutorials/how-to-generate-website-screenshots-for-your-wordpress-site/
// ex: http://s.wordpress.com/mshots/v1/http%3A%2F%2Fnickbradbury.com?w=600
if (isMshotsUrl(imageUrl)) {
return imageUrl + "?w=" + width + "&h=" + height;
}
Expand Down

0 comments on commit d3af87b

Please sign in to comment.