Method: Vips::Image#jpegsave_buffer
- Defined in:
- lib/vips/methods.rb
#jpegsave_buffer(**opts) ⇒ VipsBlob
Save as jpeg.
Parameters:
-
opts
(Hash)
—
Set of options
Options Hash (**opts):
-
:Q
(Integer)
—
Q factor
-
:optimize_coding
(Boolean)
—
Compute optimal Huffman coding tables
-
:interlace
(Boolean)
—
Generate an interlaced (progressive) jpeg
-
:trellis_quant
(Boolean)
—
Apply trellis quantisation to each 8x8 block
-
:overshoot_deringing
(Boolean)
—
Apply overshooting to samples with extreme values
-
:optimize_scans
(Boolean)
—
Split spectrum of DCT coefficients into separate scans
-
:quant_table
(Integer)
—
Use predefined quantization table with given index
-
:subsample_mode
(Vips::ForeignSubsample)
—
Select chroma subsample operation mode
-
:restart_interval
(Integer)
—
Add restart markers every specified number of mcu
-
:keep
(Vips::ForeignKeep)
—
Which metadata to retain
-
:background
(Array<Double>)
—
Background value
-
:page_height
(Integer)
—
Set page height for multipage save
-
:profile
(String)
—
Filename of ICC profile to embed
Returns:
-
(VipsBlob)
—
Buffer to save to
|
|
# File 'lib/vips/methods.rb', line 2126
|