Hi guys,
I have a site where I need to upload images that people can download and use for PC desktops. This is simple enough, but can it be done by just uploading one image and creating the different screen sizes by adding multiple upload image transactions to the same file field? Thanks!
Comments
`<?php echo "<a href='".getCustomImageURL($size, $width=NULL, $height=NULL, $cropw=NULL, $croph=NULL, $cropx=NULL, $cropy=NULL)."'>Download Wallpaper" ; ?>`
You need to fill in your values of course. Please note its not really a download link, it just opens the sized image in the browser, your users can download it then.
I have a couple of questions:
1. Can I customize the filename being generated? I'm currently getting "Image.jpg_h1200_cw1920.jpg".
2. I want to have X number of wallpaper resolutions. If i just you this:
`<?php echo "<a href='".getCustomImageURL($size, $width=NULL, $height=NULL, $cropw=NULL, $croph=NULL, $cropx=NULL, $cropy=NULL)."'>Download Wallpaper" ; ?>`
I'll see the link no matter what - if the image is smaller, and the link has higher resolution, it will upscale the image instead. Can I hide it, so I only see same and lower resolutions than original image?
3. Would it be possible to have resolution dependent grouping? Ie. A 1920*1200 category/group/search link(?) would only show my images that are at least 1920*1200
Thanks,
2. Take a look at the nightly and the new plugin viewer_size_image that lets visitors choose the size. Documentation is included in the plugin file.
Zenphoto does actually only upscales smaller images if the admin option is set for that.
3. You could use tags for that.
2. had a quick look at it before. I'll look closer.
3. sweet.
Thanks for the reply.