flathub / org.darktable.Darktable

https://flathub.org/apps/details/org.darktable.Darktable
5 stars 14 forks source link

Add exiftool to the sandbox in support of certain Lua scripts #98

Closed rrenomeron closed 1 month ago

rrenomeron commented 1 year ago

Some Lua scripts supporting automatic styling of photos on import run exiftool in order to take action based on the imported photo's EXIF. This adds exiftool and its perl dependency to the sandbox so that it can run. A more secure approach than #97.

Inspired by https://github.com/flathub/io.github.hvdwofl.jExifToolGUI.

flathubbot commented 1 year ago

Started test build 6542

flathubbot commented 1 year ago

Build 6542 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/118998/org.darktable.Darktable.flatpakref
paperdigits commented 1 year ago

Which lua scripts are these?

On November 13, 2022 10:58:29 AM PST, Rich Renomeron @.***> wrote:

Some Lua scripts supporting automatic styling of photos on import run exiftool in order to take action based on the imported photo's EXIF. This adds exiftool and its perl dependency to the sandbox so that it can run. A more secure approach than #97.

Inspired by https://github.com/flathub/io.github.hvdwofl.jExifToolGUI.

You can view, comment on, or merge this pull request online at:

https://github.com/flathub/org.darktable.Darktable/pull/98

-- Commit Summary --

  • Add exiftool (and perl) to manifest

-- File Changes --

M org.darktable.Darktable.json (75)

-- Patch Links --

https://github.com/flathub/org.darktable.Darktable/pull/98.patch https://github.com/flathub/org.darktable.Darktable/pull/98.diff

-- Reply to this email directly or view it on GitHub: https://github.com/flathub/org.darktable.Darktable/pull/98 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

rrenomeron commented 1 year ago

This one: https://bastibe.de/2022-05-04-customizing-darktable-for-fujifilm-cameras.html and these from the darktable.org repo:

hfiguiere commented 1 year ago

bot, build

flathubbot commented 1 year ago

Queued test build for org.darktable.Darktable.

flathubbot commented 1 year ago

Started test build 10815

flathubbot commented 1 year ago

Build 10815 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/123269/org.darktable.Darktable.flatpakref
hfiguiere commented 1 year ago

The package goes from 91.2MB to 149.1MB

rrenomeron commented 1 year ago

That would be the perl runtime needed by Exiftool adding on all those megabytes.

paperdigits commented 1 year ago

It'd be much nicer if the lua was modified to use exiv2, which does much the same thing but is already in the sandbox.

Since lua can call anything.... Are we going to support everything?

On December 10, 2022 8:06:51 AM PST, Rich Renomeron @.***> wrote:

That would be the perl runtime needed by Exiftool adding on all those megabytes.

-- Reply to this email directly or view it on GitHub: https://github.com/flathub/org.darktable.Darktable/pull/98#issuecomment-1345295875 You are receiving this because you commented.

Message ID: @.***>

rrenomeron commented 1 year ago

Unfortunately, exiv2 can't display the "Auto Dynamic Range" tag for Fujifilm cameras.

nalsai commented 1 year ago

Couldn't exiftool be made into an extension? People who need exiftool could install the extension and the package can be kept small for people who don't need it.

flathubbot commented 1 year ago

Started test build 13781

rrenomeron commented 1 year ago

Something like this looks promising: https://blog.tingping.se/2018/03/18/flatpaking-plugins.html. I'm happy to give it a try. @Nalsai, if you know of a better reference for this, please chime in.

flathubbot commented 1 year ago

Build 13781 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/126209/org.darktable.Darktable.flatpakref
paperdigits commented 1 year ago

@rrenomeron that seems like the right approach

flathubbot commented 1 year ago

Started test build 28511

flathubbot commented 1 year ago

Build 28511 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/11180/org.darktable.Darktable.flatpakref
flathubbot commented 1 year ago

Started test build 28513

flathubbot commented 1 year ago

Build 28513 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/11182/org.darktable.Darktable.flatpakref
hfiguiere commented 1 year ago

Couldn't exiftool be made into an extension? People who need exiftool could install the extension and the package can be kept small for people who don't need it.

Given the dependency on Perl, no.

hfiguiere commented 1 year ago

Unfortunately, exiv2 can't display the "Auto Dynamic Range" tag for Fujifilm cameras.

Maybe submitting a patch to Exiv2? That seems to be a better long term solution.