| Changing ZenPressed Image Size |
[15 Jun 2007|11:43am] |
Ever since my move off of Flickr an onto ZenPress, I've been much happier. I like to host my own stuff but at the time of setting up my website the only decent photo hosting solution was to use Flickr. I loved Flickr, until Yahoo bought them, I wasn't really fond of that move but that's beyond the scope of this blog entry.
I have a small block dedicated to displaying 4 images from my photo gallery on my blog. I use the ZenPressed plugin (download link can be found at bottom of article). I've also been a huge fan of the Lightbox (and it's cousins) for a long time. i really like the cool effect! ZenPressed allows you to use another plugin called wp_lightbox_2 so you can easily get that effect. It took literally 5 minutes to install and configure both plugins but the real trick is getting it so that when you click the little thumbnail from my blog page you do not get the full sized image. Why would you want to do that you may ask?
Well I shoot in Large Fine on my Canon Digital Rebel XT, so those images are about 6-8MBs in size and the resolution is just to big. So why not shoot in a smaller format, I do use the pictures for other things other then putting on my blog/photo gallery so I like to have the high quality shots, I just don't want them to be displayed when someone clicks these thumbnails.
So the solution is to change which image the plugin (ZenPressed) calls. It's pretty simple, even for me who understands zero Javascript or PHP. Open up the zenpressed.php file (the actually PHP file of the plugin) which should be located in /wp-content/plugins/. Go to line 60 and change it to:
$u = $conf["url"] . $photo["folder"] . "/image/" . "595/" . $photo["filename"];
Then move to line 72 and change it to:
$u = $conf["url"] . $photo["folder"] . "/image/" . "595/" . $photo["filename"];
That should do it and you should no longer get the huge full sized images when you click the thumbnails on your blog. If you would like a copy of my 'zenpressed.php' please let me know, I'd be more then willing to send it to you although the above fixes should be easy for anyone to do! I am also assuming that ZenPress keep the same folder structure for everyone, though I have not confirmed it, you might not use '595/' it might something else, but hopefully not!
|
|
| Changing ZenPressed Image Size |
[15 Jun 2007|11:11pm] |
Ever since my move off of Flickr an onto ZenPress, I've been much happier. I like to host my own stuff but at the time of setting up my website the only decent photo hosting solution was to use Flickr. I loved Flickr, until Yahoo bought them, I wasn't really fond of that move but that's beyond the scope of this blog entry.
I have a small block dedicated to displaying 4 images from my photo gallery on my blog. I use the ZenPressed plugin (download link can be found at bottom of article). I've also been a huge fan of the Lightbox (and it's cousins) for a long time. i really like the cool effect! ZenPressed allows you to use another plugin called wp_lightbox_2 so you can easily get that effect. It took literally 5 minutes to install and configure both plugins but the real trick is getting it so that when you click the little thumbnail from my blog page you do not get the full sized image. Why would you want to do that you may ask?
Well I shoot in Large Fine on my Canon Digital Rebel XT, so those images are about 6-8MBs in size and the resolution is just to big. So why not shoot in a smaller format, I do use the pictures for other things other then putting on my blog/photo gallery so I like to have the high quality shots, I just don't want them to be displayed when someone clicks these thumbnails.
So the solution is to change which image the plugin (ZenPressed) calls. It's pretty simple, even for me who understands zero Javascript or PHP. Open up the zenpressed.php file (the actually PHP file of the plugin) which should be located in /wp-content/plugins/. Go to line 60 and change it to:
$u = $conf["url"] . $photo["folder"] . "/image/" . "595/" . $photo["filename"];
Then move to line 72 and change it to:
$u = $conf["url"] . $photo["folder"] . "/image/" . "595/" . $photo["filename"];
That should do it and you should no longer get the huge full sized images when you click the thumbnails on your blog. If you would like a copy of my 'zenpressed.php' please let me know, I'd be more then willing to send it to you although the above fixes should be easy for anyone to do! I am also assuming that ZenPress keep the same folder structure for everyone, though I have not confirmed it, you might not use '595/' it might something else, but hopefully not!
|
|