Stop forced downloading of original image

After upgrading to the newest version (1.1.3), whenever I try to view the original image by clicking on the scaled-down version, I get a download prompt, when in fact I just want to view the image in the browser, which I DO NOT LIKE at all.

There's no option that seem to address this behaviour in admin panel... what should I do to make it work like before?

Gallery address: www.miragecraft.com/gallery

Comments

  • Delete line 18 of full-image.php. It reads:
    `header('Content-Disposition: attachment; filename="' . $_zp_current_image->name . '"');`

    Of course, you could just select 'Open" at the download prompt.
  • It worked! Thanks for the help.

    Of course I could just select open at the prompt, but when I browse (I don't know about other ppl) a lot of time I want to view the larger version for just a few seconds to discern the details I can't see in the scaled-down version, and to click on a download prompt and launch another external program would waste me around 2-15 second, depending on whether the local computer has the file associated to something light and fast like Irfanview or a big program like Photoshop.

    IMHO, it's just bad usability wise.

    It might be a good idea to add an option in the admin to choose the preferred behaviour.
  • Submit a feature request ticket on trak. However, isn't it the browser who would want to make the choice, not the admin?
  • Humm... its not really a new feature, more like a defect, since in this case the new update broke something that works (IMHO):

    You're saying that the user should make the choice, but having the browser prompt you to download the image as the default behaviour is a decision the admin made for the user as well.

    Unless you are giving the user a checkbox or some option for them to choose their own behaviour, ANY pre-configured behaviour would be a decision made on the part of the admin, and frankly most user don't want to make that kind of choice as long as they don't suffer greatly in the usability department.

    And that's where this became a problem because the EXPECTED behaviour when you click on a scaled-downed image in MOST web gallery will take you to an bigger (or original) image WITHIN the browser.

    And so this change of behaviour in the new version is BAD, because it BROKE CONVENTION, which in this case breaks usability.

    If the user want to download the image instead, he can always right click and choose "Save image as", or right click on the scaled-down image and choose "Save target as..."

    I view most download single image function as a duplication of a perfectly good browser function (like those silly JavaScript font-resize buttons...), but if you really want them, you could always add a button that says "download this image" or just "download" instead of modifying the conventional behaviour.
  • Trak is used for defects, too. It is a place where requests can be logged and not forgotten.
Sign In or Register to comment.