News for hackers. Stuff that matters.
Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Tuesday August 18, 2020 @11:19AM (#24199715)
> It also sounds like someone made the decision not to backup the raw images because they were “big” - that is actually the one thing they should have backed up because all of the smaller files can be regenerated from the raw ones.

Ironically my experience has been exactly the opposite. It's the demosaic-ed, fully developed copies of my photos that are larger and harder to preserve than the original RAWs. And these files can't be trivially regenerated from the RAWs, either. Let me explain.

The most important issue is that the process of taking a raw image and turning it into an edited RGB-pixel image is not obvious, at all. Tons of steps have to happen in this process, and there's currently no way to describe this process in a way that's compatible with a single open standard or even multiple pieces of software. At all. The steps can be broken down roughly into a series of "instructions", but what those instructions mean (e.g. to Lightroom) is entirely opaque and even secret in the case of closed source programs. Even open source programs, like RawTherapee and Darktable, use entirely different and incompatible approaches, algorithms, and instructions.

What this means on a practical level is that you can preserve your raw files and the instructions for replicating the edits as carefully as you like, but without the exact same piece of software (often even the same version of the program with the same settings and defaults set), your edits are as good as gone forever.

As a result I've had to take fairly drastic steps to make sure my photos are safe. For my older photos, I keep an entire VirtualBox image with Windows and Lightroom backed up along with my raw images, so that I can be sure of restoring exactly the same output files if necessary. (This more-or-less has to be a hacked version of Lightroom because you can't take chances with licensing problems preventing the program from running now that Lightroom is subscription based.) And actually for newer photos, I've moved away from Lightroom to RawTherapee. Even though I feel it's usually inferior, I feel safer since I know the pipeline from raw to burned edit is essentially public. I keep a backed up copy of the RawTherapee source code, but even if that somehow failed someone could make a RawTherapee compatible raw converter from scratch.

So that's why edited images are actually harder to preserve: whereas with raw you can just save them in 2-3 different physical locations and storage devices, to keep the edits you have to take several additional steps and there are more points of failure. Why not just keep the static edited images too? Well, I do that for my most essential photos. But that gets into the other issue, that the edited images are actually larger than the original raws.

If the point is preserving my edits, not just having a copy that's good enough for Facebook, the images have to be lossless. This pretty much means PNG or TIFF, and in fact the latter seems to be necessary since PNG doesn't handle metadata anywhere nearly as well. Unfortunately, while the compression used on raw files tends to be pretty good (which is further aided by the images being mosaiced), the compression algorithms compatible with TIFF are pretty terrible. Add that to the fact that you almost certainly want 16 bit images, in order to preserve as much raw detail as possible (in case you want high quality prints or need to do further editing), and you end up with whopping huge TIFFs. I regularly see my TIFF output files 4-5 times larger than the corresponding raws.

In short, managing backups for a high quality photography workflow is actually a good bit more difficult than it seems at first sight - and how it looks at first is not that easy either!

Re:Canon's cloud platform has lost users' files and can't re... by wtracy on Tuesday August 18, 2020 @11:55AM (#24200213)
By "raw" I think GP meant the files originally provided by the users, not actual RAW files.
Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Tuesday August 18, 2020 @01:14PM (#24201331)
That might be the case. Admittedly I don't know much about this cloud platform, and the article doesn't fill in a lot of details, but I would naively have assumed the target audience for something like this would be pro and semi-pro users, who would want to store RAW files, since amateurs and those just looking to share photos would get more out of Flickr, or even Google Photos / Facebook / Twitter / etc.
Re:Canon's cloud platform has lost users' files and can't re... by novok on Tuesday August 18, 2020 @12:14PM (#24200508)
Also I don't think the point of canon's service was to store heavily edited versions of photos, if you were able to edit them at all on their service.
Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Tuesday August 18, 2020 @06:44PM (#24205233)
> Even open source programs, like RawTherapee and Darktable, use entirely different and incompatible approaches, algorithms, and instructions.

`git checkout v3.0.2`

`./build.sh`

No idea what you're talking about. As long as you have your RAWs and your sidecar file you can trivially reproduce the picture, at least that's how it works in darktable.

Hell, the old code that is deprecated and "hidden" in the newest versions is actually all still there and if you import your stuff in the newest version it is practically guaranteed to look exactly the same. In fact there is a CI system that checks for delta-Es in each release.

Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Tuesday August 18, 2020 @09:50PM (#24206401)
I mean that RawTherapee and Darktable don't use the same code as each other at all. The instructions (usually sidecar files) the tell each program what to do to generate the output are completely incompatible.

> the old code that is deprecated and "hidden" in the newest versions is actually all still there and if you import your stuff in the newest version

I'd expect this to be the case with any good photo developer, but it doesn't pay to take chances. There have been significant bugs in the past with DNG files, for example, and different bugs could be introduced in the future, or bugs you didn't know about could be fixed, and so on. There's a lot of stuff that could go wrong. It's good to be able to just tar the source code.

Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Wednesday August 19, 2020 @11:27AM (#24211374)
> I mean that RawTherapee and Darktable don't use the same code as each other at all. The instructions (usually sidecar files) the tell each program what to do to generate the output are completely incompatible.

I'll be honest, this is probably the most ridiculous argument against anything I've ever heard on hacker news. This is like saying C/gcc sucks because Javascript exists. What the fuck?

> I'd expect this to be the case with any good photo developer, but it doesn't pay to take chances. There have been significant bugs in the past with DNG files, for example, and different bugs could be introduced in the future, or bugs you didn't know about could be fixed, and so on. There's a lot of stuff that could go wrong. It's good to be able to just tar the source code.

So... it's a non issue? I don't even...

Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Wednesday August 19, 2020 @12:50PM (#24212566)
> I'll be honest, this is probably the most ridiculous argument against anything I've ever heard on hacker news. This is like saying C/gcc sucks because Javascript exists. What the fuck?

Well, sorry you feel that way. /s

The difference is that C and Javascript are widely implemented open standards. Lightroom, Darktable and RawTherapee are using three different opaque, undocumented approaches to developing raw images. Neither one has been reimplemented in other software, and it would be extraordinarily difficult to actually do that, because of all the specificity and quirks. You basically need the original software, which means making sure you can still compile it, making sure you have a platform it can run on, and so on. This is more complexity than most people ordinarily expect when they talk about "backing up photos", and that's exactly my point.

> So... it's a non issue? I don't even...

I should probably not even bother responding, since you already showed with your original comment that you didn't bother to even read my post, but I really don't get this. I explained a very specific issue: that there's a lot of complexity to developing raw photos, which means you have to take extra steps to make sure your edits are properly backed up. Open source software has a distinct advantage because you can archive a copy of the software yourself, but it doesn't change the fact that you do need the original software. And in fact you might need the same version, that's what the example of DNG conversion is supposed to illustrate.

This is ... the opposite of a non-issue. In fact it's a very specific issue that I took quite a bit of time to explain in detail. Having to back up your software, or possibly even an entire VM along with your photos to make sure your edits are preserved, goes way beyond what your average person, or even many photographers think they have to do to keep proper backups.

Re:Canon's cloud platform has lost users' files and can't re... by glenneroo on Wednesday August 19, 2020 @05:41PM (#24216983)
To add to this, I have a love/hate relationship with Adobe updating their RAW Engine version, as opening up old RAW images (with edits stored in XMP sidecar format) will look completely different due to the engine interpreting edits differently, or in extreme cases, when Adobe decides to add or remove features, which has happened to me numerous times during the last ~15 years since going from RawShooter directly to Lightroom. I usually delete exports for non-critical projects to save space, but any paid jobs are backed up multiple times because I've been bitten before by not being able to render the exact same TIFF for print as 5+ years ago.
Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Wednesday August 19, 2020 @03:01PM (#24214668)
Actually this highlights a different issue--for photo editing, there isn't one "right" way to do things, like for instance text editing in like Microsoft Word or some shit. darktable has a very different approach compared to Lightroom for instance.
Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Wednesday August 19, 2020 @02:54PM (#24214555)
> Neither one has been reimplemented in other software, and it would be extraordinarily difficult to actually do that, because of all the specificity and quirks.

Why is this a problem? That's like saying "I need a good GPU to run this game, this sucks!" Well, no shit I guess?

And it's not even close to that because you can always just buy/compile/compile the right version. And for darktable you don't even need that, backward compatibility is guaranteed. Also darktable has a rudimentary Lightroom to darktable conversion tool (never used it).

> This is more complexity than most people ordinarily expect when they talk about "backing up photos", and that's exactly my point.

Not sure about the other ones, but for darktable, it's as simple as keeping the XML alive.

> I explained a very specific issue: that there's a lot of complexity to developing raw photos, which means you have to take extra steps to make sure your edits are properly backed up. Open source software has a distinct advantage because you can archive a copy of the software yourself, but it doesn't change the fact that you do need the original software. And in fact you might need the same version, that's what the example of DNG conversion is supposed to illustrate.

If you don't like having a non-destructive copy, save a high quality JPEG with your edits. Also, I can't think of any other applications (not just photo editing) that you can easily have future-proof non destructive copies of whatever you need to save.

For example: for audio, you can always just save a WAV or FLAC of your work, but you're still relying on the fact that your DAW workflow is still gonna exist 10 years in the future if you try to save your project as opposed to a mastered copy.

Code is also similar. You can save a binary which will probably work, but if you want to save your repo, unless it has good package managers you might have issues later down the line, like that left-pad incident a while back.

Hell, even for something completely different: language drifts over time, and reading Shakespeare is kind of hard unless you know how to read Middle English. And we don't seem to have a problem with forward compatibility, it's just a bit of a pain in the ass. I read it in High School and I didn't go insane.

This isn't a photography issue, this isn't a software issue, this is a core part of human experience.

> This is ... the opposite of a non-issue. In fact it's a very specific issue that I took quite a bit of time to explain in detail. Having to back up your software, or possibly even an entire VM along with your photos to make sure your edits are preserved, goes way beyond what your average person, or even many photographers think they have to do to keep proper backups.

You don't need a VM, at least for darktable. You're making an issue that hasn't appeared but is potentially possible into a real issue for yourself. Maybe it will become an issue, but just figuring out how to install the old version is gonna be good enough. You do you mane. I'll stick with running dt natively and trusting the forward compatibility and OpenCL acceleration.

Re:Canon's cloud platform has lost users' files and can't re... by __s on Tuesday August 18, 2020 @03:24PM (#24203146)
For storing lossless rgb you might consider FLIF given you've demonstrated some flexibility in your setup, https://flif.info it supports 16-bit channels
Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Wednesday August 19, 2020 @12:56PM (#24212653)
Thanks for the suggestion! I tested it on one file. Support for the format might turn out to be a problem: to use the flif command line tool, I had to convert my input file from TIFF to PNG first, which means I'd have to be extremely careful not to lose metadata if I started doing this for real. It was also pretty slow.

File sizes (DNG lossless, other formats 16 bits):

* DNG: 18.5 MiB

* TIFF: 84.2 MiB

* FLIF: 55.1 MiB

So while FLIF is unsurprisingly much better than TIFF, it's still ~3 times larger than the DNG, which means that a pretty noticeable amount of additional disk space would have to be sacrificed to store the final edited versions of all my photos.

Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Wednesday August 19, 2020 @03:03PM (#24214691)
This is lossless as in it losslessly preserves an frame buffer, but it isn't lossless in that it can be edited in RAW losslessly.
Re:Canon's cloud platform has lost users' files and can't re... by teawrecks on Tuesday August 18, 2020 @01:49PM (#24201784)
I'm not sold. In the cases where you lose the raw vs a post processed image, one of those is significantly more lost information. It may be non trivial to reproduce a post process image from a raw image, but the other way around is usually impossible.

In one case you've lost original sensor information, in the other case you've lost some parameters and possibly the algorithm used. The former is infinitely more difficult to synthesize from scratch.

Re:Canon's cloud platform has lost users' files and can't re... by foo_barrio on Tuesday August 18, 2020 @02:13PM (#24202130)
I think that's a really shallow way to look at it. For a professional photographer it's the final version of the file that is actually sold, not the RAW or film negative. These final files are often not some 300x200 web preview. These are full sized images. You can argue the final edit has more value and is the one to preserve. Ansel Adams broke the process down into 3 parts with the initial capture being but the first. So losing the final edits is losing 66% of the total work.

I'm only a hobbyist photog and the bday parties and weddings I've shot result in thousands of images. I can't imagine having to shoot multiple events every week for years. For a pro, the edits represent thousands of hours of work. That the work can be redone theoretically might mean very little to a working photographer.

Re:Canon's cloud platform has lost users' files and can't re... by bscphil on Wednesday August 19, 2020 @01:18PM (#24212982)
> For a pro, the edits represent thousands of hours of work. That the work can be redone theoretically might mean very little to a working photographer.

This is exactly the issue I had in mind, well said.

Re:Canon's cloud platform has lost users' files and can't re... by owenmarshall on Tuesday August 18, 2020 @05:37PM (#24204650)
My wife shoots weddings. A wedding lasts an hour, the reception maybe three or four. She’ll spend the better part of a week editing the whole event.

Raw images seem to be very important until the very moment they’ve been edited (or, hell, rejected from editing). Then their worth is very little.

Re:Canon's cloud platform has lost users' files and can't re... by ISL on Tuesday August 18, 2020 @08:28PM (#24205922)
Some images require hours of painstaking editing. There are some photographers who will spend days or more editing an image. The edited image is as much an instantaneous snapshot of the photographer as it is the scene in front of the lens. Looking at my Darktable catalog, it is easy to estimate that I spend at least 250 hr/yr editing images.

Raw files, and sidecars, retain their value because sometimes one wishes to revisit an image/edit. If I had to pick one or the other, I might prefer to lose the edited images. That is because I believe I have more/better days of my editing life ahead of me and because I underestimate how much editing I have done. Moreover, there are plenty of RAW images awaiting the day they come to life.

In commercial work, like weddings, the final product is the edit. If there is one thing that must be retained, that is it.

Re:Canon's cloud platform has lost users' files and can't re... by ISL on Tuesday August 18, 2020 @01:00PM (#24201139)
So far, I have found that Darktable's edits have survived changes in versions. Someday there will probably be breaking changes, but I haven't yet felt it personally.
Re:Canon's cloud platform has lost users' files and can't re... by hatsunearu on Tuesday August 18, 2020 @06:49PM (#24205276)
every single "dead" code is still in marketable and isn't accessible unless you try to import a sidecar from a previous version. LR might be shitty but the fact that the guy says darktable has this problem is just silly.
Re:Canon's cloud platform has lost users' files and can't re... by jrumbut on Tuesday August 18, 2020 @02:10PM (#24202088)
This, like reproducibility in machine learning workflows, is one of those things that needs to be baked in at the start or will become a complete nightmare.
Re:Canon's cloud platform has lost users' files and can't re... by pmarreck on Tuesday August 18, 2020 @10:55PM (#24206712)
This was a fascinating, but also disturbing, read; it does sound like your solution (quasi legal as it might be) is the one that makes the most sense if you do this professionally