Closed (fixed)
Project:
Media: Flickr
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2013 at 20:56 UTC
Updated:
4 Jul 2017 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
David_Rothstein commentedHere is a patch.
As mentioned above, the existing code comments imply that "5" is always the original size, but this isn't true. I wonder if the code dates back from a time when the Flickr API returned a smaller number of sizes than it currently does? If so, the _media_flickr_guess_size() function probably has other issue too, since it's assuming a particular mapping between image dimensions and size number.
Comment #2
steinmb commentedHow would this work if the original is a RAW-photo? Have not read through the Flickr API yet.
Comment #3
steinmb commentedTake that back about RAW image. Found this in the FAQ:
I'll have a look at the submitted patch.
Comment #4
kobb commentedTested the patch.
It works for me.
Thanks @David_Rothstein
Comment #5
steinmb commentedThis code addresses the problem by picking the latest value in the array. Prob. a more robust way would be to pick the nested array that is labeled 'Original', though I think this is OK for now. Cannot see that _media_flickr_guess_size() ever get the max width settings passed so we might revisit this code when addressing that problem in a separate issue. RTBC as far as I see it.
Comment #8
steinmb commentedWe should also make it into 6.x-1.x. #1480326: Images suddenly fuzzy / blurry / blurred prob. should be closed as a duplicate.
Comment #9
steinmb commented6.x is outdated but we should make sure this is OK in 7.x
Comment #10
steinmb commentedRe-tested. It is correct.
Comment #11
steinmb commented