stuff
This commit is contained in:
parent
18f79ab328
commit
176a47effd
@ -8,6 +8,7 @@
|
|||||||
GraphicsMagick over ImageMagick (thanks Mikhail)
|
GraphicsMagick over ImageMagick (thanks Mikhail)
|
||||||
- fix the en_GB translation
|
- fix the en_GB translation
|
||||||
- use meta to preserve resunit between tiff load and save
|
- use meta to preserve resunit between tiff load and save
|
||||||
|
- small doc improvements
|
||||||
|
|
||||||
25/1/08 started 7.14.0
|
25/1/08 started 7.14.0
|
||||||
- bump all version numbers for new stable
|
- bump all version numbers for new stable
|
||||||
|
@ -1200,13 +1200,11 @@ make_tiff_write( IMAGE *im, const char *filename )
|
|||||||
tw->resunit = RESUNIT_CENTIMETER;
|
tw->resunit = RESUNIT_CENTIMETER;
|
||||||
tw->xres = im->Xres * 10;
|
tw->xres = im->Xres * 10;
|
||||||
tw->yres = im->Yres * 10;
|
tw->yres = im->Yres * 10;
|
||||||
if( im_meta_get_string( im, IM_META_RESOLUTION_UNIT, &p ) &&
|
if( !im_meta_get_string( im, IM_META_RESOLUTION_UNIT, &p ) &&
|
||||||
strcmp( p, "in" ) ) {
|
strcmp( p, "in" ) == 0 ) {
|
||||||
tw->resunit = RESUNIT_INCH;
|
tw->resunit = RESUNIT_INCH;
|
||||||
tw->xres /= 2.54;
|
tw->xres *= 2.54;
|
||||||
tw->yres /= 2.54;
|
tw->yres *= 2.54;
|
||||||
// do I need this?
|
|
||||||
g_free( p );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse mode string.
|
/* Parse mode string.
|
||||||
|
@ -90,6 +90,12 @@ is a convenience function over
|
|||||||
It copies the string, and
|
It copies the string, and
|
||||||
then shares that copy between all images derived from this IMAGE.
|
then shares that copy between all images derived from this IMAGE.
|
||||||
|
|
||||||
|
.B im_meta_get_string(3)
|
||||||
|
is a convenience function over
|
||||||
|
.B im_meta_get_area(3).
|
||||||
|
It returns a pointer to the string being mananged by VIPS. Do not free the
|
||||||
|
return result!
|
||||||
|
|
||||||
.B im_meta_set_blob(3)
|
.B im_meta_set_blob(3)
|
||||||
sets a field which is a blob (binary object). A blob is just like string,
|
sets a field which is a blob (binary object). A blob is just like string,
|
||||||
except that rather than being NULL-terminated, you must pass an explicit
|
except that rather than being NULL-terminated, you must pass an explicit
|
||||||
|
@ -102,11 +102,15 @@ The default format is "multibit".
|
|||||||
"res_cm" - output resolution unit is pixels per centimetre
|
"res_cm" - output resolution unit is pixels per centimetre
|
||||||
"res_inch" - output resolution unit is pixels per inch
|
"res_inch" - output resolution unit is pixels per inch
|
||||||
|
|
||||||
The default format is "res_cm". The unit can optionally be followed by a
|
The default resolution unit is taken from the header field "resolution-unit"
|
||||||
":" character and the horizontal and vertical resolution, separated by a "x"
|
(IM_META_RESOLUTION_UNIT in C). If this field is not set, then VIPS defaults
|
||||||
character. You can have a single number with no "x" and set the horizontal
|
to cm.
|
||||||
and vertical resolutions together. The default unit is cm, and the default
|
|
||||||
resolution is taken from the VIPS header.
|
This may be overridden by the <resolution> option. The unit can optionally
|
||||||
|
be followed by a ":" character and the horizontal and vertical resolution,
|
||||||
|
separated by a "x" character. You can have a single number with no "x" and
|
||||||
|
set the horizontal and vertical resolutions together. The default unit is
|
||||||
|
cm, and the default resolution is taken from the VIPS header.
|
||||||
|
|
||||||
<icc> is the filename of an ICC profile to embed in the TIFF file
|
<icc> is the filename of an ICC profile to embed in the TIFF file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user