I am using media flickr for a couple of weeks now and since yesterday the images look strange. I tried to unpublish some but this didn´t change it.
Can someone help me? Thank you.

My site is: xsoxso.com

CommentFileSizeAuthor
#8 480326-add_more_sizes-6317332.patch903 bytesdomesticat

Comments

jorisvt’s picture

Category: feature » bug
Priority: Normal » Major

The same problems occurs on a site I build. All images that come from Flickr are presented
in a lower image format than configured in the image field (Media: flickr) of the content-type.

See: www.jagerjanssen.nl

It looks like the changes made in the content-type fields have no effect on the images presented by Flickr.
(domain.com/admin/content/node-type/project/fields/field_image)

For example, we want to see this one:
http://farm8.staticflickr.com/7039/6871295582_60bfb37eab_b.jpg

But we get this one:
http://farm8.staticflickr.com/7039/6871295582_60bfb37eab_n.jpg
And due to the different size the image gets blurred.

As you can see on the site, this is a big problem.
Hope that somebody can help.

domesticat’s picture

Version: 6.x-1.x-dev » 6.x-1.12

It's not just 6.x-dev; I can confirm that 6.x-1.12 is affected as well, which makes me think something's changed on Flickr's end.

On the node type I'm using media: flickr with, I have the 'Full size' set to be 550px on the longest side. It's pulling in the [number]_n.jpg image, which is far too small and is being scaled up, with predictably blurry effects, on the node.

BenK’s picture

I'm experiencing the same problem in the 7.x version of this module... not sure what's wrong.

--Ben

BenK’s picture

But I don't have the problem when I use the oEmbed module to display the photos.... so did something change in the Flickr API that isn't yet accounted for by this module?

--Ben

domesticat’s picture

Here's a more solid example: http://domesticat.net/quilts/say-yes-lets-go -- the large photo is quite blurred.

I have it set to display on the node as 'full size' and my settings for "full size display width" are 550 for width and 0 for height (since my images don't all have the same aspect ratio)

The node is scaling up http://farm7.staticflickr.com/6082/6083481652_984d132eca_n.jpg

thecanary’s picture

Hi All, the issue with the blurry up-sized images comes from Flickr adding additional size options that the code currently does not account for. You need to update the Flickr.inc file on the following lines:
Line 267:
foreach (array('0' => 75, '2' => 100, '3' => 240, '4' => 320, '5' => 500, '6' => 640, '7' => 800, '8' => 1024, '9' => 1600, '10' => 2048) as $size => $value) {

line 275:
return '11';

Sorry don't have access to git to write a patch right now, will get back to you with that as soon as I can.

domesticat’s picture

Confirmed -- editing media_flickr/providers/emimage/flickr.inc with these changes (in D6) fixes the issue for me. I have sharp photos again.

domesticat’s picture

Status: Active » Needs review
StatusFileSize
new903 bytes

Patch attached. Hope I did this right. I really want to see this get in quickly; it's an icky bug.

Drupal Musician’s picture

I am also getting this in 7.x-dev with the medium file style has this patch not been included yet?

domesticat’s picture

It has not. Needs someone to test it and then mark it as RTBC so the maintainer will roll a new version. (It'll need to be updated for 7.x as well.)

steinmb’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)
Related issues: +#2066485: Media Flickr should download the original (largest) size photo from Flickr by default

6.x is outdated but we should make sure 7.x is OK. Going to close this is a duplicate to #2066485: Media Flickr should download the original (largest) size photo from Flickr by default