Member
Member
SubJunk   07-09-2009, 23:08
#1

Hi everyone.
I'd like to make a plugin that will create different versions of images when they're uploaded.
For example:
If I upload an image that is 1920x1200, the plugin would automatically save a 1680x1050 version, a 1280x720 version, etc.
I'm going to try to learn how to make plugins but I haven't made one for zenphoto before so I could really use any help possible.
Thanks in advance.

Member
Member
SubJunk   08-09-2009, 03:12
#2

Actually I've done it myself by modifying the viewer_size_image plugin. Thanks for that Stephen.

Member
Member
SubJunk   09-09-2009, 11:41
#3

Oh by the way Stephen, the cookie time format is wrong so it only lasts for the session. To fix it, change line 128 from:
`document.cookie='viewer_size_image_saved='+$(obj).attr('value')+'; expires=

Member
Member
sbillard   13-09-2009, 01:23
#4

COOKIE_PESISTENCE should be normally be 5184000. Maybe you have changed that define?

Member
Member
SubJunk   14-09-2009, 05:04
#5

Oh I just chose to edit that but that wasn't the problem, the problem was the date format.
It should be D, j M Y H:i instead of Y-m-d H:i

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.