mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
* Switch from decompress-zip to extract-zip The former seems to hang when unzipping a ZIP64 file that uses the general purpose bit flag 3 as file entry. See: https://github.com/thejoshwolfe/yauzl#no-streaming-unzip-api * Prefer to call via static member instead Makes it clearer that a static method is being called. * `flatten-orange.jpg`: save without chroma subsampling To ensure no down-scaling of the Cr/Cb channels.
28 lines
385 B
C++
28 lines
385 B
C++
// Object part of VRegion class
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif /*HAVE_CONFIG_H*/
|
|
|
|
#include <vips/vips8>
|
|
|
|
#include <vips/debug.h>
|
|
|
|
VIPS_NAMESPACE_START
|
|
|
|
VRegion
|
|
VRegion::new_from_image( VImage image )
|
|
{
|
|
VipsRegion *region;
|
|
|
|
if( !(region = vips_region_new( image.get_image() )) ) {
|
|
throw VError();
|
|
}
|
|
|
|
VRegion out( region );
|
|
|
|
return( out );
|
|
}
|
|
|
|
VIPS_NAMESPACE_END
|