Do you have some example using the plugin or more detailed explain ?
I wish to replace the printDefaultSizedImage() function and display instead a 'Retina' picture on my retina MacBook.
I'm trying:
`
$img = getHDCustomSizedImageMaxSpace(NULL, $hd=true, 610, 408,$thumb=false,$effects = null);
printResponsiveImage($img[0], $img[1], NULL,NULL,NULL,NULL,NULL,NULL,NULL);
`
See here.
My theme setting:
-Full image image: 800x600
-Default image image: 610x408
For testing, I've uploaded in 'Retina' album a 1600x1200 picture
Too complicated: Just replace printDefaultSizedImage() with printHDDefaultSizedImage().
It handles using the right image for the right device itself. That means the right size for the screensize and HD if you are on a HD device. SImple rule: No HD devide, no HD image. That is the purpose of picturefill.
I am sorry I am lacking a retina device to actually test this functionality myself. It is a rather plain implementation of picturefill. I appreciate testing though. Seems you are the first trying it at all.
Thanks acrylian ! Seems working but not perfect.
Normal:
Load /zenphoto/cache/divers/2014-04-17_CascadesDuHerisson_6209-800x533_595_watermark.jpg
Retina:
Load /zenphoto/cache/retina/2014-04-17_cascadesduherisson_6209_595_watermark.jpg
The picture displayed in the browser (zenphoto or directly) does not appear as sharp as that displayed in MacOSX.
Also some NOTICE and WARNING.
How sharp the image appears has to do with the resizing done via the server. The retina image being quite huge is set to a low quality compression of 35 of 100. That follows this observation: http://filamentgroup.com/lab/rwd_img_compression/
I see a difference but it is not that huge to me though. At least no one will really notice as the comparision will be missing. I might add an option to set that lower compression though.
Please open a ticket about the warnings and notice on the zp_picturefill repo.
The image must exist in a size so it can be disbaled doubled. So if you have a 800x600px image the retina one would be doubled 1600x1200px. Zenphoto does not upscale images that do not have that size originally.
Sorry, "doesn't work" is not really a helpful bug report. Please see: http://www.zenphoto.org/news/general-contributor-guidelines#reporting-bugs
Also, please it is really more helpful to open a ticket for things this and provide some details what the typo is on the zp_picturefill repositories. Here on the forum things get too easily lost if I don't get to it it right away (which I mostly don't).