On Tue, Jul 11, 2023 at 2:36 AM Zener <zene...@gmail.com> wrote: > Actually, creating a new one (jpeg format dt.new_format(jpeg)), it takes > panel values which I can read after. > > Anyway... I need to use panel setting in some post-elaboration and the > above way can be useful. > > However I can't still get "allow upscaling" selection..... no way to get > it?? > SHort answer: no
Longer answer: no need to. If it's set to false, then it does not do anything. If it's set to true and the output size is the same or less than the image size it does nothing. If the output size is greater than the image size then it scales the image up. If the output size is more than twice the input size, then you might want to set it to false. > thanks. > > > Il 06/07/23 17:24, William Ferguson ha scritto: > > Reading the value wouldn't serve a useful purpose, so it's not implemented. > > The purpose of reading the value would be to see if it's set correctly and > if not then set it correctly. So, save yourself the code of reading and > testing the value, and just set it to the value you've decided is correct. > > Or, trust the user to set the value they want. > > On Thu, Jul 6, 2023 at 4:29 AM Zener <zene...@gmail.com> wrote: > >> >> Hello... >> >> I can't get, in a lua script, the value of "quality" set on the panel. >> >> I can set it as an export parameter of a >> dt_imageio_module_format_data_jpeg type >> (dt_imageio_module_format_data_jpeg.quality) but i don't know how to get >> the value set from the panel. >> >> I use a darktable.register_storage ( >> https://docs.darktable.org/lua/stable/lua.api.manual/darktable/darktable.register_storage/) >> function and I'd like to read the value of file format quality inside the >> "initialize" sub function. >> >> Thank you. >> >> l >> >> ___________________________________________________________________________ >> darktable developer mailing list to unsubscribe send a mail to >> darktable-dev+unsubscr...@lists.darktable.org >> > > ___________________________________________________________________________ > darktable developer mailing list to unsubscribe send a mail to > darktable-dev+unsubscr...@lists.darktable.org > > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org