Use actual requested size for Picasa #37

Open
toppa opened this Issue Jan 2, 2013 · 2 comments

Projects

None yet

2 participants

@toppa
Owner
toppa commented Jan 2, 2013

Picasa will now provide images in any size, so there is no need to rely on browser scaling anymore. See here: http://wordpress.org/support/topic/suboptimal-image-resizing-problem

@mondalaci

Do you want me to make this happen? I may have the time.

@toppa
Owner
toppa commented Jan 2, 2013

Sure! This one shouldn't be too complicated. The relevant parts of the code are:

  • Public/ShashinPhotoDisplayerPicasa.php - that's where it lists the sizes that Picasa used to require. I don't know if they still have required sizes for the cropped photos.
  • Public/ShashinAlbumDisplayerPicasa.php - same as above, for album thumbnails.
  • Public/ShashinDataObjectDisplayer.php - setActualThumbnailSize() compares the requested size to the available sizes. For Picasa it can just be the requested size (please override this method in the Picasa subclasses...). I don't know if Picasa lets you do the same with the cropped photos as well.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment