John Cupitt
John Cupitt
Of course, I'd be delighted.
Hi @sadektouati, It depends a bit on the image, but they should be very roughly equivalent in size. I see: ``` $ vips copy astronauts.png x.avif $ vips copy astronauts.png...
If you can somehow share this file, I could have a look. AVIF will only be smaller then JPG if you set the compression options. They are documented here: https://www.libvips.org/API/current/VipsForeignSave.html#vips-heifsave
Hi, are those the right images? Your original is 21kb. I tried converting to avif: ``` $ ls -l car.jpg -rw-rw-r-- 1 john john 21834 Dec 9 13:03 car.jpg $...
Yes, the php docs aren't great, unfortunately. It's a limitation of phpdoc. You need eg.: ```php $filename = '1638389769417678.jpg'; $image = Vips\Image::newFromFile($filename); $image->writeToFile('jpegto.avif', ['Q' => 40]); ```
Hello Marco, I'm very sorry for not replying, this accidentally dropped off my to-do list. IM and libvips are computing different things here. The libvips `find_trim` operator is doing quite...
I had a quick go in pyvips (just because I have it set up on this laptop, it's almost the same in php): ```python #!/usr/bin/python3 import sys import pyvips im...
Ah, OK. Yes, you need to run `profile` on the whole alpha. In python: ```python3 #!/usr/bin/python3 import sys import pyvips import numpy as np im = pyvips.Image.new_from_file(sys.argv[1], access="sequential") # just...
Let's leave this open as an enhancement issue.
I added `writeToArray`. You'll need the latest `pecl install vips` and php-vips 1.0.5. This program now works: ```php #!/usr/bin/php