Multiple versions of one upload

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

  • acrylian Administrator, Developer
    You could do something like that with the function getCustomImageURL(). Just upload the maxium sized image and use this:

    `<?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.
  • Yes! I use imageupload.com for uploading my images. It’s provides lots of facilities to upload images. I have joined many forums and blogs so I’m continue using this site. I would prefer you this site. Hope this will help you. Good luck!
  • This does exactly what I need.. excellent (rubs hands).

    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,
  • acrylian Administrator, Developer
    1. No, these are file names for cached files and required by Zenphoto.
    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.
  • 1. meh
    2. had a quick look at it before. I'll look closer.
    3. sweet.

    Thanks for the reply.
Sign In or Register to comment.