Closed (fixed)
Project:
Flickr
Version:
7.x-1.x-dev
Component:
flickr (main module)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2013 at 22:20 UTC
Updated:
29 Jan 2014 at 10:50 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
lolandese commentedComment #2
lolandese commentedAttached patch grabs the real width of the image instead of the longest side to use for the width of the caption. See image.
Comment #3
lolandese commentedEven better if the admin can change the minimum image width for which to suppress a title caption in the settings.
This way they can always use titles, even on the thumbnails, setting it to '0 px', or always suppress them setting it to '999 px'. Defaults to '100 px'.
Comment #4
lolandese commentedShortened issue title
Comment #5
lolandese commentedA D6 version of this is partially included in the patch posted at #688572: Photo descriptions support plus date taken, location and photographer (not yet in Flickr Fliter).
Thanks.
Comment #6
lolandese commentedCommitted. See http://drupalcode.org/project/flickr.git/commitdiff/ecbcf53.
Comment #7
lolandese commentedExtend this also to Flickr Field.
Thanks.
Comment #8
lolandese commentedAttached patch extends to the Flickr Field submodule and corrects the default opening size that was set erroneously to 'm' in the previous patch.
Comment #9
lolandese commentedCommitted. See http://drupalcode.org/project/flickr.git/commitdiff/b2a90ed.
Comment #10
lolandese commentedNOTE #5: A D6 version of this is partially included in the patch posted at #688572: Photo descriptions support plus date taken, location and photographer.
Comment #11
lolandese commentedComment #12
lolandese commentedhttp://drupalcode.org/project/flickr.git/commitdiff/78b8a19
Comment #13
lolandese commentedPretty often we notice the following warning appearing:
warning: getimagesize(http://farm3.static.flickr.com/2040/5798582259_384e4ee239_s.jpg): failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out in /home/martin/www/drupal-6/sites/all/modules/flickr/flickr.module on line 227.The php function getimagesize() is a request that takes some unnecessary time if we already know the image is a square. We could exclude it for those. Usually those are the thumbnails that exist in potential large numbers.
Nonetheless error messages can be suppressed on production sites (D7: admin/config/development/logging, D6: /admin/settings/error-reporting) and the images show as expected, it has a performance impact. We have to say that the site cache on our test site is turned off. This problem likely won't happen if you turn it on.
Reopening to implement this performance enhancement.
Comment #14
lolandese commentedPlus some minor README.txt edits.
Comment #15
lolandese commentedhttp://drupalcode.org/project/flickr.git/commitdiff/fa5aef3
Comment #16
lolandese commentedComment #17
lolandese commentedPotentially it can be improved even further. See Super fast getimagesize in php - Stack Overflow and http://www.php.net/manual/en/function.getimagesize.php#88793.
Furthermore a recommendation has been included in the documentation (on D.O. and in README.txt):
Comment #18
lolandese commentedComment #19
lolandese commentedComment #20
lolandese commentedhttp://drupalcode.org/project/flickr.git/commitdiff/667800e
Comment #21
lolandese commentedAdded note in the README's.
http://drupalcode.org/project/flickr.git/commitdiff/81f9516