Results 1568 comments of John Cupitt

It works for me. Perhaps there's something wrong with your GIF? You need to check the return code from `thumbnail_buffer`. Test program: ```C /* compile with * * gcc -g...

You need to give `vips_magicksave_buffer()` the format to encode in, eg.: ```C if (vips_magicksave_buffer (image, &output_contents, &output_length, "format", "GIF", NULL)) vips_error_exit (NULL); ```

Yes, like the example above (if I understand what you mean).

Hi @drhyde488, Yes, saving a mono image will be quicker. You could also scale up with simple pixel doubling, if blocky output is acceptable. ```python3 #!/usr/bin/python3 import sys import pyvips...

Hello again, I was saving to a pyramidal tiff. Here's the program again with some timing code: ```python3 #!/usr/bin/python3 import sys import time import pyvips start = time.time() image =...

Hey @NextGuido, Your program seems OK, it will be freeing memory. Python probably won't return the memory back to the OS though -- it'll keep it for reuse. Are your...

That's not a leak though, it's just not returned to the OS. Try adding a loop. For example: ```python import sys import os from time import time import pyvips tiles_across...

Could you open a new issue with a complete sample program please?

Hi @Mhuang77, I tried this test program: ```python #!/usr/bin/python3 import os import psutil import sys import pyvips def pyvips_decoder(image_data): buf_in = pyvips.Image.new_from_buffer(image_data, "", access="sequential") return buf_in.write_to_buffer(".jpeg", Q=95) image_data = open(sys.argv[1],...

Here's another test program: ```C /* Compile with: * gcc -g -Wall buffer.c `pkg-config vips --cflags --libs` */ #include int main( int argc, char **argv ) { gchar *buf; gsize...