John Cupitt
John Cupitt
You can see the sizing like this: ``` $ vips copy st-francis.jpg x.jpg --vips-info VIPS-INFO: 12:47:28.607: threadpool completed with 4 workers ``` That's very IO bound, so the pool is...
Hi @nitishsaDire, You need `thumbnail_buffer`. Try something like: ```python for idx, filepath in tqdm(enumerate(filepaths)): with rawpy.imread(filepath) as raw: thumb = raw.extract_thumb() thumb_rgb = pyvips.Image.thumbnail_buffer(thumb, 1024, size="down") thumb_rgb.write_to_file(f"{idx}.jpg") ``` **edit** sorry,...
Yes, it should speed up well. For example: ``` $ for i in {1..100}; do cp ~/pics/wtc.jpg $i.jpg; done $ vipsheader 1.jpg 1.jpg: 9372x9372 uchar, 3 bands, srgb, jpegload $...
Or in python: ```python #!/usr/bin/python3 import os import multiprocessing import sys import pyvips def thumbnail(directory, file): thumb = pyvips.Image.thumbnail(f"{directory}/{file}", 128) thumb.write_to_file(f"{directory}/tn_{file}") def all_files(path): for (root, dirs, files) in os.walk(path): for...
Oh, I hadn't noticed. Thank you, I'll update them.
If you have an image which always fails, that'd be great! If it seems random, this will be much harder to find :( Are you using Brandon's libvips? https://elements.heroku.com/buildpacks/brandoncc/heroku-buildpack-vips I'd...
Hi, I'll try and look into this tomorrow.
Hi @Weeper1k, **Size of preview**: You have a few choices here: 1. The simplest thing would be to reduce the resolution of the pi output. 1920 x 1080 is the...
Hi @ido-nuc, Huh, curious. I managed to make it a bit simpler: ```python #!/usr/bin/env python import numpy as np import pyvips def save_pyr(full_scale_image, file_name): image = pyvips.Image.new_from_array(full_scale_image) image.write_to_file(file_name, pyramid=True, compression="lzw")...
Hello Sam, sorry, I don't have that camera, I can't really help. `PTP Device Busy (0x2019)` sounds like gphoto perhaps can't get the USB. Could some other program (like shotwell)...