John Cupitt
John Cupitt
> FWIW, looks like v2.2.2 was miss-tagged as v2.2.0: :facepalm: fixed.
Hello @amrosado, You're right, I had the same error using `add_dll_dir()`, I wonder what's changed? I saw: ``` jcupi@DESKTOP-HGI6HBR MINGW64 /c/Python311 $ python3.11.exe -m pip install pyvips Collecting pyvips Downloading...
Thinking again, before making a recommendation, it would be good to find out why the `add_dll_dir()` method sometimes fails. Is it linked to the cffi version?
Hello @TarunChakitha, It's because your image doesn't split neatly into pages. You have an image height of 1622346 and a page height of 1650, but 1622346 / 1650 is 988.24,...
You could open a page at a time and try to find which pages differ in size. You could also try opening pages in sequential mode, and using a loop...
Oh no! Try File / Recover -- nip2 saves the last 10 workspace edits in a recovery area, you should be able to get your work back. Yes, .ws files...
For a scharr filter in nip2, try saving this file as `scahrr.def`: ``` scharr image = (kx ** 2 + ky ** 2) ** 0.5 { scharr_matrix = Matrix [...
I think you saw black because nip2 defaults to integer convolution. Cast your image to float before calling conv and it should work. Alternatively you could also redo scharr as...
In `nip2` it's `image?band` to get a band from an image, and `image ++ image` to join two images bandwise. They work for strings and lists too, so: ``` "abc"?1...
I think it works fine, doesn't it? Workspace files are XML internally, but that shouldn't matter. Save as `fred.ws`, load back again, it should all work. It shouldn't save black...