-
-
Notifications
You must be signed in to change notification settings - Fork 719
Open
Labels
Description
vipsthumbnail: 8.17 size
There seems to be some weird behaviour with sizing of this image.
VIPS_INFO=1 vipsthumbnail --size='1920>' -o balloon.jpg balloon.jp2
I would expect one of the dimensions to be roughly 1920 in size, but the result is:
$ vipsheader balloon.jpg
balloon.jpg: 85x116 uchar, 3 bands, srgb, jpegload
Steps to reproduce:
wget https://github.com/bitsgalore/jp2kMagic/raw/refs/heads/master/sampleImages/balloon.jp2
VIPS_INFO=1 vipsthumbnail --size '1920>' -o balloon.jpg balloon.jp2
VIPS-INFO: 11:17:34.467: found /opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17
VIPS-INFO: 11:17:34.472: using configure-time prefix
VIPS-INFO: 11:17:34.472: VIPS_PREFIX = /opt/homebrew/Cellar/vips/8.17.2
VIPS-INFO: 11:17:34.472: VIPS_LIBDIR = /opt/homebrew/Cellar/vips/8.17.2/lib
VIPS-INFO: 11:17:34.472: prefix = /opt/homebrew/Cellar/vips/8.17.2
VIPS-INFO: 11:17:34.472: libdir = /opt/homebrew/Cellar/vips/8.17.2/lib
VIPS-INFO: 11:17:34.472: searching "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17"
VIPS-INFO: 11:17:34.472: loading "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17/vips-heif.dylib"
VIPS-INFO: 11:17:34.482: loading "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17/vips-magick.dylib"
VIPS-INFO: 11:17:34.485: loading "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17/vips-poppler.dylib"
VIPS-INFO: 11:17:34.489: loading "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17/vips-openslide.dylib"
VIPS-INFO: 11:17:34.492: loading "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-modules-8.17/vips-jxl.dylib"
VIPS-INFO: 11:17:34.494: searching "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-plugins-8.17"
VIPS-INFO: 11:17:34.494: im_load_plugins: searching "/opt/homebrew/Cellar/vips/8.17.2/lib/vips-8.17"
VIPS-INFO: 11:17:34.494: im_load_plugins: searching "/opt/homebrew/Cellar/vips/8.17.2/lib"
VIPS-INFO: 11:17:34.496: thumbnailing balloon.jp2
VIPS-INFO: 11:17:34.497: selected loader is VipsForeignLoadJp2kFile
VIPS-INFO: 11:17:34.497: input size is 2717 x 3701
VIPS-INFO: 11:17:34.500: loading with factor 5 pre-shrink
VIPS-INFO: 11:17:34.500: pre-shrunk size is 85 x 116
VIPS-INFO: 11:17:34.500: converting to processing space srgb
VIPS-INFO: 11:17:34.500: exporting with srgb
VIPS-INFO: 11:17:34.503: thumbnailing balloon.jp2 as ./balloon.jpg
VIPS-INFO: 11:17:34.506: threadpool completed with 1 workers
vipsheader balloon.jpg
balloon.jpg: 85x116 uchar, 3 bands, srgb, jpegload
Version information:
$ vips --version
vips-8.17.2
$ vips --version --vips-config
enable debug: false
enable deprecated: true
enable modules: true
enable C++ binding: true
enable RAD load/save: true
enable Analyze7 load: true
enable PPM load/save: true
enable GIF load: true
FFTs with fftw3: true
SIMD support with libhwy: true
ICC profile support with lcms2: true
deflate compression with zlib: true
text rendering with pangocairo: true
font file support with fontconfig: true
EXIF metadata support with libexif: true
JPEG load/save with libjpeg: true
JXL load/save with libjxl: true (dynamic module: true)
JPEG2000 load/save with libopenjp2: true
PNG load/save with spng: true
image quantisation with imagequant: true
TIFF load/save with libtiff-4: true
image pyramid save with libarchive: true
HEIC/AVIF load/save with libheif: true (dynamic module: true)
WebP load/save with libwebp: true
PDF load with poppler-glib: true (dynamic module: true)
SVG load with librsvg-2.0: true
EXR load with OpenEXR: true
WSI load with openslide: true (dynamic module: true)
Matlab load with matio: true
NIfTI load/save with libnifti: false
FITS load/save with cfitsio: true
GIF save with cgif: true
Magick load/save with MagickCore: true (dynamic module: true)
$ brew info openjpeg
==> openjpeg: stable 2.5.4 (bottled), HEAD
Library for JPEG-2000 image manipulation
https://www.openjpeg.org/
Installed
/opt/homebrew/Cellar/openjpeg/2.5.4 (512 files, 14MB)