libvips-rust-bindings icon indicating copy to clipboard operation
libvips-rust-bindings copied to clipboard

[Bug]The version of libvips may have been confused in version 1.7.0

Open SethWen opened this issue 9 months ago • 1 comments

In README.md, libvips is noted as 8.14.5, however, the test example in which executed failed with the following error.

error: jpegsave: no property named `keep'

The following is my vips info. The vips jpegsave options do not exist keep.

builder@2dd7e4b7a54a:~$ vips --version
vips-8.14.5
builder@2dd7e4b7a54a:~$ vips jpegsave
save image to jpeg file
usage:
   jpegsave in filename [--option-name option-value ...]
where:
   in           - Image to save, input VipsImage
   filename     - Filename to save to, input gchararray
optional arguments:
   Q            - Q factor, input gint
                        default: 75
                        min: 1, max: 100
   profile      - ICC profile to embed, input gchararray
   optimize-coding - Compute optimal Huffman coding tables, input gboolean
                        default: false
   interlace    - Generate an interlaced (progressive) jpeg, input gboolean
                        default: false
   trellis-quant - Apply trellis quantisation to each 8x8 block, input gboolean
                        default: false
   overshoot-deringing - Apply overshooting to samples with extreme values, input gboolean
                        default: false
   optimize-scans - Split spectrum of DCT coefficients into separate scans, input gboolean
                        default: false
   quant-table  - Use predefined quantization table with given index, input gint
                        default: 0
                        min: 0, max: 8
   subsample-mode - Select chroma subsample operation mode, input VipsForeignSubsample
                        default: auto
                        allowed: auto, on, off
   restart-interval - Add restart markers every specified number of mcu, input gint
                        default: 0
                        min: 0, max: 2147483647
   strip        - Strip all metadata from image, input gboolean
                        default: false
   background   - Background value, input VipsArrayDouble
   page-height  - Set page height for multipage save, input gint
                        default: 0
                        min: 0, max: 10000000
operation flags: sequential nocache

When I using crate libvips@=1.6.1, the example executed succefully.

SethWen avatar May 09 '24 07:05 SethWen

See libvips change log

SethWen avatar May 13 '24 02:05 SethWen