Merge remote-tracking branch 'origin/7.28'
Conflicts: ChangeLog configure.in
This commit is contained in:
commit
f19a9d9d6b
@ -5,6 +5,9 @@
|
|||||||
rounding down (thanks Nicolas)
|
rounding down (thanks Nicolas)
|
||||||
- add dzsave, save in deep zoom format
|
- add dzsave, save in deep zoom format
|
||||||
|
|
||||||
|
19/4/12 started 7.28.6
|
||||||
|
- better resolution unit handling in deprecated im_vips2tiff()
|
||||||
|
|
||||||
19/4/12 started 7.28.5
|
19/4/12 started 7.28.5
|
||||||
- ifthenelse blend mode was broken
|
- ifthenelse blend mode was broken
|
||||||
- small blend speedup
|
- small blend speedup
|
||||||
|
10
TODO
10
TODO
@ -40,18 +40,8 @@ foreign
|
|||||||
ppm.c
|
ppm.c
|
||||||
radiance.c
|
radiance.c
|
||||||
|
|
||||||
- is the tif reader deadlocking sometimes?
|
|
||||||
|
|
||||||
is it when we get a non-seq error?
|
|
||||||
|
|
||||||
should there be some way to set the seq cache size?
|
|
||||||
|
|
||||||
- foreign docs come up as "VipsForeignSave", annoying, why?
|
- foreign docs come up as "VipsForeignSave", annoying, why?
|
||||||
|
|
||||||
- make an argb coding type, add to nip2 and known coding
|
|
||||||
|
|
||||||
see openslide
|
|
||||||
|
|
||||||
- add nifti support
|
- add nifti support
|
||||||
|
|
||||||
http://niftilib.sourceforge.net/
|
http://niftilib.sourceforge.net/
|
||||||
|
@ -228,8 +228,7 @@ im_text( IMAGE *out, const char *text, const char *font,
|
|||||||
|
|
||||||
pango_ft2_font_map_set_resolution( PANGO_FT2_FONT_MAP( fontmap ),
|
pango_ft2_font_map_set_resolution( PANGO_FT2_FONT_MAP( fontmap ),
|
||||||
dpi, dpi );
|
dpi, dpi );
|
||||||
context = pango_ft2_font_map_create_context(
|
context = pango_font_map_create_context( PANGO_FONT_MAP( fontmap ) );
|
||||||
PANGO_FT2_FONT_MAP( fontmap ) );
|
|
||||||
|
|
||||||
if( text_render_to_image( context, out, text, font,
|
if( text_render_to_image( context, out, text, font,
|
||||||
width, alignment, dpi ) ) {
|
width, alignment, dpi ) ) {
|
||||||
|
@ -178,20 +178,10 @@ im_vips2tiff( IMAGE *in, const char *filename )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( (q = im_getnextoption( &p )) ) {
|
if( (q = im_getnextoption( &p )) ) {
|
||||||
if( im_isprefix( "res_cm", q ) ) {
|
if( im_isprefix( "res_cm", q ) )
|
||||||
if( resunit == VIPS_FOREIGN_TIFF_RESUNIT_INCH ) {
|
|
||||||
xres /= 2.54;
|
|
||||||
yres /= 2.54;
|
|
||||||
}
|
|
||||||
resunit = VIPS_FOREIGN_TIFF_RESUNIT_CM;
|
resunit = VIPS_FOREIGN_TIFF_RESUNIT_CM;
|
||||||
}
|
else if( im_isprefix( "res_inch", q ) )
|
||||||
else if( im_isprefix( "res_inch", q ) ) {
|
|
||||||
if( resunit == VIPS_FOREIGN_TIFF_RESUNIT_CM ) {
|
|
||||||
xres *= 2.54;
|
|
||||||
yres *= 2.54;
|
|
||||||
}
|
|
||||||
resunit = VIPS_FOREIGN_TIFF_RESUNIT_INCH;
|
resunit = VIPS_FOREIGN_TIFF_RESUNIT_INCH;
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
im_error( "im_vips2tiff", _( "unknown resolution unit "
|
im_error( "im_vips2tiff", _( "unknown resolution unit "
|
||||||
"\"%s\"\nshould be one of \"res_cm\" or "
|
"\"%s\"\nshould be one of \"res_cm\" or "
|
||||||
@ -209,6 +199,15 @@ im_vips2tiff( IMAGE *in, const char *filename )
|
|||||||
|
|
||||||
yres = xres;
|
yres = xres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* vips resolutions are always in pixels/mm. If the
|
||||||
|
* user specifies ",res_inch:72x72" then they are
|
||||||
|
* using pixels/inch instead and we must convert.
|
||||||
|
*/
|
||||||
|
if( resunit == VIPS_FOREIGN_TIFF_RESUNIT_INCH ) {
|
||||||
|
xres /= 2.54;
|
||||||
|
yres /= 2.54;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1717,9 +1717,9 @@ vips_tiffload( const char *filename, VipsImage **out, ... )
|
|||||||
* @tile_height; set tile size
|
* @tile_height; set tile size
|
||||||
* @pyramid; set %TRUE to write an image pyramid
|
* @pyramid; set %TRUE to write an image pyramid
|
||||||
* @squash; squash 8-bit images down to 1 bit
|
* @squash; squash 8-bit images down to 1 bit
|
||||||
* @resunit; use pixels per inch or cm for the resolution
|
* @resunit; convert resolution to pixels per inch or cm during write
|
||||||
* @xres; horizontal resolution
|
* @xres; horizontal resolution in pixels/mm
|
||||||
* @yres; vertical resolution
|
* @yres; vertical resolution in pixels/mm
|
||||||
* @bigtiff; write a BigTiff file
|
* @bigtiff; write a BigTiff file
|
||||||
*
|
*
|
||||||
* Write a VIPS image to a file as TIFF.
|
* Write a VIPS image to a file as TIFF.
|
||||||
@ -1769,6 +1769,7 @@ vips_tiffload( const char *filename, VipsImage **out, ... )
|
|||||||
*
|
*
|
||||||
* Use @xres and @yres to override the default horizontal and vertical
|
* Use @xres and @yres to override the default horizontal and vertical
|
||||||
* resolutions. By default these values are taken from the VIPS image header.
|
* resolutions. By default these values are taken from the VIPS image header.
|
||||||
|
* libvips resolution is always in pixels per millimetre.
|
||||||
*
|
*
|
||||||
* Set @bigtiff to attempt to write a bigtiff.
|
* Set @bigtiff to attempt to write a bigtiff.
|
||||||
* Bigtiff is a variant of the TIFF
|
* Bigtiff is a variant of the TIFF
|
||||||
|
Loading…
Reference in New Issue
Block a user