Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 11:19
in response to: davidekholm
|
|
|
Using ls command I get: /opt/local/lib/libz.1.dylib: No such file or directory
Double checked by viewing the actual folders for those files, none exist.
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 13:10
in response to: RobM
|
|
|
Good. That might be it. I’ll prepare a new version this evening when I’m back. Just one thing: in your initial report there was a reference to a file not found. Can you verify again that the referenced .dylib file is indeed found in your temp folder?
If you like to resolve the problem already try installing the lib by executing:
brew install zlib
You may need to install homebrew for Mac first
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 13:34
in response to: davidekholm
|
|
|
Good. That might be it. I’ll prepare a new version this evening when I’m back. Just one thing: in your initial report there was a reference to a file not found. Can you verify again that the referenced .dylib file is indeed found in your temp folder?
If you like to resolve the problem already try installing the lib by executing:
brew install zlib
You may need to install homebrew for Mac first
Have home brew installed already, will try this afternoon.
The only .dlib file, in this context, was the one embedded in
jlibraw-dummy.jar, which contains a file lib>darwin_universal.dylib
That file has been deleted. Did you mean something else?
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 17:52
in response to: davidekholm
|
|
|
|
brew install zlib
terminal response:
Pouring zlib--1.3.1.arm64_sequoia.bottle.tar.gz
Caveats
zlib is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find zlib you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/zlib/lib"
export CPPFLAGS="-I/opt/homebrew/opt/zlib/include"
Summary
/opt/homebrew/Cellar/zlib/1.3.1: 14 files, 403.9KB
Launched jAlbum, same error code. So I looked in the os for zlib and found three entries for zlib.h, mainly under /Library/Developer and /Library/Frameworks/libz.framework/...
Next I ran the terminal code for compliers to find zlib, as in the code above. Launched jAlbum same error. So I rebooted the mac and tried again, same error java.lang.IllegalArgumentException: Cannot open library: /var/folders/vc/1cnjqtpd5616hbyf_sh4l30c0000gn/T/libraw9699022053109211573.dylib
Skin loading: 0.65s
Used Finder to go to the file and it exists it did. See attached info frame for permissions etc.
Started jAlbum, same error but now the file libraw9699022053109211573.dylib
is not in the folder. Re-installed libz from homeBrew again, no change.
At a loss as to why the file was there but no longer is.
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 18:47
in response to: RobM
|
|
|
The only thing I can comment right now is that these files are set to be deleted on jAlbum exit so you need to keep jAlbum running after receiving this error. I’ll install a clean Mac environment and will try to reproduce. So far it’s worked successfully on the 5 platforms/architectures we support.
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 20:05
in response to: davidekholm
|
|
|
OK. After restarting jAlbum the file exists for as long as jAlbum is running.
Having read about the private folder I now know it is for temporary files - at least I've learnt something
Will wait for the next update/change from you.
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
9 Feb 25, 22:49
in response to: RobM
|
|
|
Now I have it working! I first had to set up a brand new Mac OS in order to simulate your kind of relatively clean machine (vs mine where I have loads of dev tools installed). Thank you Parallels!
With that virtual Mac set up, I could trigger the error you received. It turned out that the build script for libraw detected and used various non-standard libraries that were later on referenced within the generated .dylib file. Now I've ensured that only standard libraries are referenced. It works at least fine on a cleanly installed Mac now. I've updated the libraries for both Intel and M-series Macs now. Just grab jLibRaw2.jar again and retry.
I don't suspect that the Linux versions will fail as they were built on relatively clean Linux distros. The Windows version was already precompiled, so I think all libraries should be working now.
Man, I couldn't have managed fixing this without ChatGPT...
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
10 Feb 25, 00:40
in response to: davidekholm
|
|
|
|
Now I have it working! I first had to set up a brand new Mac OS in order to simulate your kind of relatively clean machine (vs mine where I have loads of dev tools installed). Thank you Parallels!
Easier, I think, to make a bootable os on an external drive and just change the startup disk when you want.
With that virtual Mac set up, I could trigger the error you received. It turned out that the build script for libraw detected and used various non-standard libraries that were later on referenced within the generated .dylib file. Now I've ensured that only standard libraries are referenced. It works at least fine on a cleanly installed Mac now. I've updated the libraries for both Intel and M-series Macs now. Just grab jLibRaw2.jar again and retry.
It works now, no errors except the 'warnings' that need bypassing. Brilliant!
However, there is some distortion in edit mode, see attached screenshots. Ignore colours/gamma etc. I haven't tried to correct the default conversion - just wanted to test the settings.
I don't suspect that the Linux versions will fail as they were built on relatively clean Linux distros. The Windows version was already precompiled, so I think all libraries should be working now.
Man, I couldn't have managed fixing this without ChatGPT...
I don't know how you do what you do do, there is an enormous amount of code to keep track of.
It will be late on Monday before I can try the raw processor conversion. I need to add some other raw files, .raf is an old format and maybe not fully supported.
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
10 Feb 25, 08:38
in response to: RobM
|
|
|
Can you attach the image with color distortions? I did leave out one piece of code this time, and that was color profile support. Perhaps that specific image has a non standard color profile that reveals the need for color profile support?
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
10 Feb 25, 10:37
in response to: davidekholm
|
|
|
Can you attach the image with color distortions? I did leave out one piece of code this time, and that was color profile support. Perhaps that specific image has a non standard color profile that reveals the need for color profile support?
I can attach the image later this afternoon. The distortion I was really referring to was the dimensional squashing in edit mode.
Since the raw file has no colour space I’m assuming you mean a library that provides mapping to the colour spaces based on camera models. I’ll also have a look at getting the image correct by changing jAlbum’s raw editor settings, as I said before it was just a quick test.
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
10 Feb 25, 16:36
in response to: RobM
|
|
|
RAW file is 13MB, so I will email it to you now.
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
10 Feb 25, 18:32
in response to: RobM
|
|
|
Tried other raw files as well as original RAF file. All convert fine using the raw editor's defaults for
white balance=as shot
gamma=BT.709
output colour space=sRGB
Changes on specific images to exposure correction and brightness.
All slide images look the same as in the raw editor window except for the RAF file. The thumbnail/slide images are ok but the editor view it looks stretched vertically.
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
11 Feb 25, 15:21
in response to: RobM
|
|
|
I now have an updated RAW library that handles these odd* RAF files as well. The library has been renamed to jlibraw-24.0.jar so you can download it from https://jalbum.net/download/jlibraw-24.0.jar
(The RAW data is rotated 45 degrees internally. One needed to call LibRaw::adjust_sizes_info_only() as well)
|
|
|
Posts:
3,961
Registered:
4-Aug-2006
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
11 Feb 25, 21:14
in response to: davidekholm
|
|
|
Looks much better, thanks. It looks like Fujifilm are still using .raf format, although the modern cameras have an improved file ormat. Just downloaded a modern sample .raf image and the conversion still works.
One thing I have just noticed, not just on the .raf files, is the checkbox for exposure correction. Checking and unchecking it, with a value of 0, produces a noticeable brightness difference. I'd expect a value of 0 would have no effect. If you need a sample image that shows the effect I can email it to you (13MB)
|
|
|
Posts:
3,666
Registered:
18-Oct-2002
|
|
|
Re: Updated RAW file support for jAlbum
Posted:
12 Feb 25, 12:26
in response to: RobM
|
|
|
Yes, please pass me one Rob.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|