Author Topic: Be able to store the original image.  (Read 7783 times)

0 Members and 1 Guest are viewing this topic.

Offline htilly

  • album.pl Tester
  • **
  • Posts: 23
  • Karma: +0/-0
  • I forgot to change the default text
Be able to store the original image.
« on: October 16, 2003, 11:20:34 »
Hi !

As I use my didital camera for everything and I tend to end up with a bunch of photos.. and some of theese are pretty good  8)
The ones that does turn out to be ok I usually send them in to a photo lab to make "paper version" to either put them on the wall, or in a physical album (yes, I actually do this  ;D )

So, now to my ide / request.

To be able to get good quality on the "paper version" I always use high resolution on the photos, but this result in a loooong DL time when viewing them online.
This can be fixed with the: "pic_resize=" option.. GREAT  ;D

The only downsize of this is that I loose my original picture if someone else would like to make a "paper version" or if I just simply want to save the high quality picture.

Is there any chanse of keeping the original photo, and have a link next to "Small, Medium, Large, Full Size" that says: Full Resolution or something similar?

Basicly with this option you will have three version of your photo: 1-Original, 2-Thumb, 3-"pic_resize="

Does this make any sense?

Thanks In Advance !!

Best Regards
Henrik Tilly

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Be able to store the original image.
« Reply #1 on: October 16, 2003, 18:27:11 »
Hi Henrik,

It does make sense, I understand what you're asking... I recall someone else had the same request a long time ago. Basically, it would be difficult to keep the full size photo without showing it all the time, unfortunately. (It would take quite a bit of code re-work.)

An quick solution might be to have 2 albums, one for full size and one for resized photos. Not perfect, I know...

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re:Be able to store the original image.
« Reply #2 on: October 28, 2003, 00:09:47 »
Bandwidth and offsite disk space have a premium price. I just store my masters on my hard drive and also back them up to DVD. If somebody really wants a master to print for a photo, I'm only an email away.

Two seperate photo albums will definitely work. Or, just create two directories (i.e. high res and low res), and throw a modified cfg file into the high res album with the pic resize and imagemagik turned off. Haven't tested that, but from what I understand of album.pl, it should work in theory.

Am I correct, Mike?

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Be able to store the original image.
« Reply #3 on: October 28, 2003, 09:11:04 »
Turning off ImageMagick will definitely work, though I'm not sure about turning off (or on) resizing on a per album basis. I have a feeling that since that takes effect in the "global" upload subroutine, local configs won't help there...

Offline htilly

  • album.pl Tester
  • **
  • Posts: 23
  • Karma: +0/-0
  • I forgot to change the default text
Re: Be able to store the original image.
« Reply #4 on: July 04, 2004, 15:09:39 »
Hi Again!

I have realized that its possible to do what I’m asked for in this thread with the option to hide album starting at xxx_albumname.
I have played around a little bit with it and now I’m only missing one thing, so here comes my question:

This is what I have done so far:
In album.cfg - skipalbums=HIGHRES_
I have two folders for each album: 'albumname' & 'HIGHRES_albumname'.
In the description for 'album' I have the line (code?):
Click here to get the images in full resolution.

Now, this works GREAT, and album.pl is once again doing what I want it to do =)

My question is if there is anyway to add this line into the header or footer and to get album.pl to "understand" the 'album' name so it automaticly add the right URL.

Example.

I have two album named 'testalbum' and 'HIGHRES_testalbum'
In the footer (or description) I would like album.pl to add:
http://www.mydomain/cgi-bin/album.pl?album=HIGHRES_$currentalbumname;photo_height=500

Is this possible in any way ?
I hope you understood what I was trying to explain  ;)

One again... Thanks for a great script !!
« Last Edit: July 05, 2004, 06:31:59 by htilly »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #5 on: July 05, 2004, 07:13:00 »
I do understand, and I've just added that feature to the V6.5 beta. There's now a ####PATH#### tag that should do what you need. So you'd insert:

Code: [Select]
http://www.mydomain/cgi-bin/album.pl?album=HIGHRES_####PATH####;photo_height=500

And that should do the trick. Let me know how it works out for you....


Cheers
Mike

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #6 on: July 05, 2004, 09:10:24 »
BTW this will only work for albums, not sub-albums. :(

I.E. If you have

Album1
 |
 +--- Subalbum1

Then the "path" will turn into HIRES_Album1/Subalbum1 which isn't quite right...

Offline htilly

  • album.pl Tester
  • **
  • Posts: 23
  • Karma: +0/-0
  • I forgot to change the default text
Re: Be able to store the original image.
« Reply #7 on: July 05, 2004, 09:12:20 »
Works Great !!   ;D  ;D

Nice going !!

BR
Henrik Tilly

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #8 on: July 05, 2004, 17:48:55 »
Excellent. Glad to hear it! :)

Offline Poptarts

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • I forgot to change the default text
Re: Be able to store the original image.
« Reply #9 on: November 07, 2004, 17:24:23 »
I have a similar problem that would not be able to be solved using that method.  I want to be able to store the originals that other users upload into one place, but also have the photos resized and placed into my album.  Do you have any idea how I could go about doing this?

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #10 on: November 09, 2004, 15:09:06 »
You might be able to make use of the "postupload" command to call a custom script which copies the photo to a "safe" location, then resizes the original. Unfortunately it requires a custom script, but that shouldn't be *too* hard if you're familiar with shell commands or Perl.

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: Be able to store the original image.
« Reply #11 on: November 09, 2004, 15:33:26 »
That's what I was thinking, but then I realized that the postupload paragraphs of album_upload.pm would have to be moved so they occur after the quota check but before any mandatory resizing and shadow borders.

J.J.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #12 on: November 09, 2004, 20:15:56 »
Yeah, you'd have to turn off upload resizing and for that to work. Hadn't thought about shadows, which you'd also want to disable...

Offline balazer

  • album.pl User
  • *
  • Posts: 1
  • Karma: +0/-0
  • I forgot to change the default text
Re: Be able to store the original image.
« Reply #13 on: December 24, 2004, 16:07:42 »
Let me second the request to be able to store the original images on the server.

It's more than that, really.  The system should simulate the experience of using ACDSee, but using only HTML and images, sending only what's recessary and requested across the network.  The important points are

1) the user should be given an image at whatever resolution he or she wants - appropriate for the user's screen size, or full-resolution if he wants to zoom or print the image.  That freedom should extend to thumbnails as well.
2) images should be scaled and recompressed prior to being transmitted to the user, so that download times are tolerable.
3) scaling and recompression should be done on the server (rather than on my PC before I upload the images) so that I need only perform the simplest action to add images to my galleries (that simple action being uploading the photos), and so that images of different sizes can be automatically generated per the user's preference or a change in the server configuration.

album.pl ought to generate resized images on-demand, and cache them. 

E.g., the original image is DSC00373.JPG, a thumbnail image is generated and stored as DSC00373_240_180.jpg.  A medium-size image is stored as DSC00373_687_515.jpg, etc.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Be able to store the original image.
« Reply #14 on: December 26, 2004, 14:58:19 »
I can definitely see that being ueful, thanks for the additional info!