John Cupitt
John Cupitt
Hello, I'm not sure I understand. Could you post a sample image and explain exactly what you need to know?
Ah OK. Just test to see if there's an ICC profile attached. ```python x = pyvips.Image.new_from_file(...) if x.get_typeof("icc-profile-data") != 0: x = x.icc_transform("srgb") ``` Now the image is in srgb...
You can't, unfortunately. There's no such thing as **an** sRGB profile, there are only profiles which (more or less accurately) implement the sRGB standard. You'll find there are dozens of...
You need a module that can parse ICC profiles and extract the profile name. Just pass it the result of `image,get()`.
Hi, it's not easy, you need to use `vips_call` to call vips8 operations, then write a HSV2sRGB wrapper, then add it to the conversion table. I'll make you can example...
Oh dear, I hope you fell asleep quickly. You call vips8 operations from nip2 with `vips_call`. For examplem, load an image as A1 and try: ``` vips_call "sRGB2scRGB" [A1.value] []...
If you do Toolkits / Edit to get the Program window, then click File / Reload All Toolkits, it'll scan the path and reload all the .def files. You can...
Did you add HSV to `Image_type`? https://github.com/jcupitt/nip2/blob/master/share/nip2/start/_types.def#L801 it's the nip2 analogue of `VipsInterpretation`.
The text at the bottom of thumbnails and in the image display window comes from here: https://github.com/Jondeen/nip2/blob/master/src/util.c#L1241 I guess that needs HSV as well. Again, that's a vips7 problem, vips8...
Yes, move nip2 to the gtk3 toolkit and vips8 library, plus some cleaning up. There's a nipp3 branch, but it doesn't work yet :( it's going to take ages.