Results 1568 comments of John Cupitt

@TonyDragonlake interleaved tile pyramids should work fine with libvips right now. This enhancement is for support of plane-separated tiled images. I agree, some metadata with the tile geometry would be...

Oooop haha yes ahem I forgot we did that. Well done us!

Hi @apilatosba, We've no plans to implement it ourselves, but I expect we'd accept a PR. I'll tag this issue as an enhancement request. https://github.com/KhronosGroup/3D-Formats-Guidelines/blob/main/KTXDeveloperGuide.md https://github.com/KhronosGroup/KTX-Software/tree/main/lib Looks like it'd involve...

Hi @CarlosRoque, sorry for being so slow getting to this. ```ruby image = Vips::Image.new_from_file(tempfile.path) image.autorot.write_to_file(tempfile.path) ``` I suspect this is the problem -- libvips caches image load, so if you...

I should have said, this will invert (photographic negative) an image: ```console $ vips invert k2.jpg x.jpg $ ``` But this will NOT work: ```console $ vips invert k2.jpg k2.jpg...

The linked issue has a couple of sample images which load correctly with this PR.

Hi @lafith, Check the docs: https://libvips.github.io/pyvips/intro.html#numpy-and-pil You need eg.: ```python numpy_array_patch4 = patch_f.numpy() ``` I think I'd expect `fetch` to be quicker for your case (though I've not benchmarked it).

Sure, it should be fine. Don't you need the rotates and flips, though?

You'll need something more like your original code. ```python np_img = np.ndarray( buffer=patch0, dtype=np.uint8, shape=[patch_size, patch_size, 4], ) ``` Also, try the `rgb` option to load to get an RGB...

Add it to `new_from_file()`, eg: ```python image = pyvips.Image.new_from_file(sys.argv[1], rgb=True) ``` Though you'll need libvips 8.14.