05-28-2025, 11:28 PM
(05-28-2025, 10:07 PM)iiey Wrote:
(05-28-2025, 12:11 AM)alderon Wrote: Hi all,
I made nikplugin.py version 3.20 work on my PC, but one thing I wish to change. Instead of export in jpg, is it possible to change it to tif?
temp_path = os.path.join(tempfile.gettempdir(), f"tmpNik_{i}.jpg")
temp_files.append(temp_path)
changing here from tmpNik_{i}.jpg to tmpNik_{i}.tif kind of works. It will import TIF into Nik Collection program, I can save it as TIF there, but when Gimp import that file back, it's really tiny, like thumbnail. I have no idea, how to fix that.
Thanks.
Hi alderon,
I wonder what didn't work for you at first for you on PC and what did you modify to make it functional in your case?
So it could others if they have the same issue.
I could not recall which one of the Nik Collection didn't work with .tif but all of them can save as .jpg so I just simplified the code.
Actually, it's the correct way you did to replace the workflow with tif. I will check when I have time whether your problem can be reproduced.
Hi iiey,
Long story short: your (it is yours or I'm mistaken?) plugin works fine. I just had some "portable" version of Nik Collection. I downloaded some "free" version, because I wanted to see, if there's even anything worth upgrade from Google to latest NIK.
So, for Nik Collection v 8.0.12 I had to specify path to "bin" folder (where all .exe are) in the plugin (the "str" section). Plugin showed all exe files, which I didn't like much. Not big deal, but to make it more neat I changed filter from suffix .exe to prefix "Nik 8", because all programs starts from that. I have no idea about Python, so all changes are made with help of ChatGPT.
Now the problem with TIF was not export, but import back to GIMP. I figured this out by manually importing TIF file. Nik Collection was saving 2 pages in TIF. If I'm not mistaken with numbers: page 0 was full size file, page 1 was thumbnail and GIMP was loading page 1 as new layer. After bunch of trials and errors sent to ChatGPT, that AI crap finally made working changes. I don't want to make a mess, but I can send you the code. New code suppose to load whole TIF, check for biggest part/page of it and paste that part into new layer. It works now anyway.
I wanted TIF files, because when I edit my photos, I always work with uncompressed files and final TIF I export to jpg. So if I had jpg on the way, it's kind of bad for me.
Regards.