This is the bug tracker for Photo Organizer.
FS#7 - Generate a hi-res JPEG from RAW images
Attached to Project:
Photo Organizer
Opened by Solomon Peachy (pizza) - Tuesday, 25 April 2006, 16:02 GMT
Last edited by Solomon Peachy (pizza) - Monday, 27 October 2008, 13:23 GMT
Opened by Solomon Peachy (pizza) - Tuesday, 25 April 2006, 16:02 GMT
Last edited by Solomon Peachy (pizza) - Monday, 27 October 2008, 13:23 GMT
|
DetailsWe generate "thumbnail" and "preview" images for all images we upload, and we can download the original, full-res version. However, with RAW images, this is suboptimal, as we'd then need to process the RAW image into a usable JPEG.
Add the ability to generate a full-res JPEG from RAW images, and make the RAW download itself optional. Perhaps we could implement this using the whole "image version" thing? |
This task depends upon
Closed by Solomon Peachy (pizza)
Monday, 27 October 2008, 13:23 GMT
Reason for closing: Implemented
Additional comments about closing: Finally done. Will be in v2.37
Monday, 27 October 2008, 13:23 GMT
Reason for closing: Implemented
Additional comments about closing: Finally done. Will be in v2.37
2 == preview == 700x700
3 == original == whatever
I want to make things:
1 == thumb == 170x170
2 == size1 == 350x350
3 == size2 == 700x700
4 == size3 == 1050x1050
5 == full == original size (linked or RAW)
99 == original == whatever
Hmm. I wonder how hard this would be to migrate.
So, instead of 'photo_version' --> 'thumb_path, preview_path, orig_path' we'd need something like:
create table files {
identifier integer primary key,
version integer references photo_version(integer)
size integer not null, -- eg '1 == thumb, 2 == preview, 3 == original, etc
x_res integer not null,
y_res integer not null,
path_to_file text not null,
params text not null, -- eg 'decoder=ufraw sharpen=1x5+2+4 watermark=1234'
comments text
};
All queries that get the image paths would need to be updated, of course. Fortunately there aren't many. Once we migrate the existing sizes over, adding additional sizes is something we can think about in more detail.
* genericize auto-generated sizes on import, version add/edit, bulk update, and rotate; convert 'thumb' and 'preview' to this mechanism.
* add preferences for auto-generated sizes/parameters
* modify image.display.php to key directly off the size parameter rather than its internal rules. <--- Next up!
* Use size in DB whenever possible (eg slide view, shaded photo view, etc)
* Add "default image size" preference for users.
My initial feeling is to add '4' == 'original size, but sharpened+watermarked+processed' to the list as a "standard" image size.
For a standard JPEG/GIF/PNG -- images that browsers can display inline:
[X] 150x100
[ ] 600x400
[ ] 3000x2000 (full-res original) [[ download link as well as display link ]]
For any image that isn't JPEG, GIF, or PNG:
[ ] 150x100
[X] 600x400
[ ] 3000x2000 (Full-res, processed) [[ download link as well as display link ]]
[ ] 3000x2000 (Full-res, non-displayable original) [[ download only ]]
This way we can give authorized users the ability to download non-watermarked images too.
It's not the same thing, though.
It's a simple feature request, but to do it right takes a lot of work.
Best of all, the list of scaled versions and their parameters is entirely config-driven! To define a new 'type' all you need to do is add the config keys and it'll be created.
Note that there's no way to find out what additional versions are available as of yet.