-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Open File dialog crashes nip2 when you paste a path "Recent" is selected #113
Comments
Hello @Ark-kun, Yes, it's a blast from the past isn't it. nip2 was my weekends project for most of the late 90s and the world has moved on. It has recently become hard to support since most of the GUI dependencies (especially goffice) have dropped out of the major repositories. I've begun a project to rewrite it for gtk4: https://github.com/jcupitt/nip4 I've done the image viewer already: https://github.com/jcupitt/vipsdisp I'm hoping to have it mostly done by the summer. The idea is to just rewrite the GUI layer for gtk4 and leave everything else intact. It ought to be backwards compatible, though with a modern look and some useful improvements. To answer your question -- yes, nip4 uses the system file dialog. gtk2 (which nip2 is based on) did not support this, unfortunately. There are a few workarounds which might help:
|
nip4 should have a much better windows build too. There's a test build of vipsdisp (what will become the nip4 image window) for windows here: https://github.com/jcupitt/vipsdisp/releases/tag/v2.6.3 Any feedback / testing would be very welcome. |
Thank you for your patience and sorry for suddenly dumping a bunch of issues in the repo. I did not realize that this project was so old (the latest releases were pretty recent (although the Windows release is slightly older)). The day I discovered nip2 I was going on a day-long wild chase of image processing software for programmers to do a pretty simple compositing. ImageMagick -> GraphicsMagic -> ImageMagick -> libvips. It's interesting to see that the nip4 has just started. |
BTW, if you're interested, I can share my use case scenario. Just a usage data point. The formula for "normal" alpha blending is.
And I needed to perform the opposite operation to recover the original background:
With the caveat that the front and back image sizes are different, so they need to be properly centered. The idea of "spreadsheet for image manipulation" seemed to fit perfectly for what I needed to do. My idea was to use nip2 to experiment with compositing, tweak the workflow until the results look good and then use the command line. |
Hmm, kinda works: Here's that workspace: Load it into nip2, then drop your test images into cells A1 and A3. You can use nip2 from the CLI, it has a no-GUI batch mode. You can run something like:
Will run the workspace in batch mode, set A1 to the file Section 4.5 in the manual has the details. |
Batch mode is a bit harder on windows since they (strangely!) have different binaries for GUI and non-GUI programs. You need to use the CLI wrapper. |
It's my first time using nip2 and I'm very excited.
After an hour of searching around I found documentation and it told me that images need to be imported via "File/Open" menu.
The dialog I saw was ...intresting... . It made me nostalgic, remembering the 80s and 90s. So many diverse and colorful file dialog designs.
Anyways, I did not really want to traverse the whole directory hierarchy with my mouse. I had a directory path in clipboard, but I saw no field to paste it. So I just pressed Ctrl+V to paste it ...somewhere... . And the whole nip2 program just crashed. I've tried again and it seems reproducible.
I wonder whether using system-native dialogs would have prevented this issue.
The text was updated successfully, but these errors were encountered: