![]() |
|
ZP_picturefill plugin - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: ZP_picturefill plugin (/thread-11761.html) Pages:
1
2
|
ZP_picturefill plugin - ClicClac - 22-04-2014 Hello, Does a theme use this plugin ? ZP_picturefill plugin - acrylian - 22-04-2014 No, I don't think and for sure none of the official ones (except zpMobile none is responsive yet anyway). Generally we try to list the plugin support for all themes on the themes sections btw. ZP_picturefill plugin - ClicClac - 22-04-2014 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: For testing, I've uploaded in 'Retina' album a 1600x1200 picture ZP_picturefill plugin - acrylian - 22-04-2014 Too complicated: Just replace 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. ZP_picturefill plugin - ClicClac - 23-04-2014 Thanks acrylian ! Seems working but not perfect. Normal: Retina: Also some NOTICE and WARNING. ZP_picturefill plugin - acrylian - 23-04-2014 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. ZP_picturefill plugin - ClicClac - 06-05-2014 I've tried the new version. Doesn't work ! ZP_picturefill plugin - acrylian - 06-05-2014 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). ZP_picturefill plugin - ClicClac - 07-05-2014 The plugin doesn't activate. I've open a ticket (not familiar for me) ZP_picturefill plugin - ClicClac - 07-05-2014 Like you said, I'm just using the printHDDefaultSizedImage() function. But I don't understand the $hd variable (in getHDDefaultSizedImage() ), it is never defined. ZP_picturefill plugin - acrylian - 07-05-2014 Thanks for the ticket. That is better. I will take a look, I don't exclude that there are issues of course. ZP_picturefill plugin - ClicClac - 07-05-2014 I need to add the height and width attributes to the tag (line 142).
How can I get the settings theme value for height and width default size ? Finally, ZP display retina photo :-) Now I need Retina thumb... ZP_picturefill plugin - acrylian - 07-05-2014 Great it is working generally now ;-) Given that you probably have a responsive layout if you have retina support I am not sure the width/height is really needed. I know it is a recommendation for static layout for the browser to see what comes. It is not really that easy to add this as the function only gets the image urls passed. This would require a new array parameter to several sub function to pass the w/h values for all three sizes. Best you open another ticket :-) ZP_picturefill plugin - ClicClac - 20-05-2014 Hello acrylian. -- $croph = getOption('thumb_crop_height', $croph, false); Also, there isn't a 'HD printAlbumThumbImage' function for index.php (gallery.php). |