Page 1 of 2

Data info/Properties

Posted: Tue Jan 29, 2019 8:11 am
by FarbigeWelt
How is it possible to save meta data for output files. I mean data like luxcore info or render setup?
If it is currently not possible but principally is, it would be a nice task I‘d like to take.

Re: Data info/Properties

Posted: Tue Jan 29, 2019 10:35 am
by B.Y.O.B.
Do you mean when rendering from Blender, or from standalone LuxCore?
From Blender, you could use the stamp note: https://blender.stackexchange.com/quest ... ary-values
We could add a render_pre handler to BlendLuxCore.

Re: Data info/Properties

Posted: Tue Jan 29, 2019 10:57 am
by alpistinho
Hi,

I've left a comment some time ago at a GitHub issue about this, but I think it is relevant here too.

Have you thought about using SQLite as a generic format for storing all the information that is currently spreadout in multiple files? It could support storing any metadata.

https://www.sqlite.org/appfileformat.html

Re: Data info/Properties

Posted: Tue Jan 29, 2019 6:29 pm
by FarbigeWelt
Blender plugin makes more sense because of blender’s GUI for e.g. text entries.

Well actually I meant to store information about system, setup and render statistics in the file information like cameras or image processing software does including author, contacts, software type, copyright, etc.
Stamping

There are for sure different use cases for that kind of data.

In my case, rendering a dozen time or more the same scene and point of view but one or few changed parameters for testing, learning and optimizing them requires to change same information at different places and it’s to easy to forget an entry with the result to start the test series from the beginning to avoid wrong interpretatios.

Sure a data base could be a solution, in my case it would require to be accessable from different operating systems and users. The chosen data base type should therefore support server, clients, users and multiple platforms.

Re: Data info/Properties

Posted: Tue Jan 29, 2019 6:45 pm
by B.Y.O.B.
FarbigeWelt wrote: Tue Jan 29, 2019 6:29 pm Well actually I meant to store information about system, setup and render statistics in the file information like cameras or image processing software does including author, contacts, software type, copyright, etc.
Stamping in Blender does this. The text in the image pixels is only optional.
Below is the result of using a custom stamp text in Blender.
You can see that it contains the line "Note: Note from LuxCore".

P.S. I think my wording is wrong. "Stamping" in Blender is indeed the act of putting text into the image pixels. I should have used the term "Metadata".

Code: Select all

> exiftool -a untitled.png 

ExifTool Version Number         : 9.46
File Name                       : untitled.png
Directory                       : .
File Size                       : 367 kB
File Modification Date/Time     : 2019:01:29 19:43:03+01:00
File Access Date/Time           : 2019:01:29 19:43:17+01:00
File Inode Change Date/Time     : 2019:01:29 19:43:03+01:00
File Permissions                : rw-rw-r--
File Type                       : PNG
MIME Type                       : image/png
Image Width                     : 960
Image Height                    : 540
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Pixels Per Unit X               : 2835
Pixels Per Unit Y               : 2835
Pixel Units                     : Meters
File                            : /home/simon/Projekte/BlendLuxCore_tests/aniso2.blend
Note                            : Note from LuxCore
Date                            : 2019/01/29 19:42:51
Time                            : 00:00:00:01
Frame                           : 001
Camera                          : Camera
Scene                           : Scene
Render Time                     : 00:02.77
Image Size                      : 960x540

Re: Data info/Properties

Posted: Tue Jan 29, 2019 7:31 pm
by FarbigeWelt
B.Y.O.B. wrote: Tue Jan 29, 2019 6:45 pm
You can see that it contains the line "Note: Note from LuxCore".

.. term "Metadata".
These are Great News! And obviously works for you and with the exiftool.

What I do not understand is that I cannot get this exif information (some boxes are checked by default) nor with OS X Finder neither with Win 10 File Explorer and also not with Lightroom. The latter I‘ve taken your file, saved it locally in a iOS photo library and imported you image into Lightroom mobile. What shows not any exif data in your file.
one
one
two
two
From lightroom to ios photolib and back
From lightroom to ios photolib and back
Please check meta data of last image. Thanks.

Re: Data info/Properties

Posted: Tue Jan 29, 2019 7:34 pm
by alpistinho
I think I misunderstood what you've meant.
I thought you were talking about storing metadata in the output files like those that can be used to render on LuxCoreUI.

You're talking however about putting metadata about the image output. Of course a database is not the right solution for the latter.

Thanks

Re: Data info/Properties

Posted: Tue Jan 29, 2019 7:39 pm
by B.Y.O.B.
My linux file browser also doesn't show this EXIF info.
You could try exiftool as well, it's available for all platforms: https://www.sno.phy.queensu.ca/~phil/exiftool/

Re: Data info/Properties

Posted: Wed Jan 30, 2019 1:10 pm
by epilectrolytics
FarbigeWelt wrote: Tue Jan 29, 2019 6:29 pmWell actually I meant to store information about system, setup and render statistics in the file information like cameras or image processing software does including author, contacts, software type, copyright, etc.
That's a very good Idea!

I always wondered why every cheap cam manages to get all the data in the jpg exif but none of the renderers does.
But what about exif in PNG files, is that supported?

Anyways thanks for looking into that, much appreciated!

Re: Data info/Properties

Posted: Wed Jan 30, 2019 1:36 pm
by B.Y.O.B.
epilectrolytics wrote: Wed Jan 30, 2019 1:10 pm But what about exif in PNG files, is that supported?
Yes, the example image I posted is a PNG.