Skip to content

Commit

Permalink
Lower min scale factor to 0.0
Browse files Browse the repository at this point in the history
+ apply the same change to pdfload as well.
  • Loading branch information
kleisauke committed Jan 28, 2024
1 parent 316733b commit 62eaf9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ date-tbd 8.15.2

- fix deflate compression of tiff pyramids [manthey]
- better no-chroma-subsample switching for jpeg in tiff [kleisauke]
- lower min scale factor to 0.0 in svgload and pdfload [lovell]

18/12/23 8.15.1

Expand Down
2 changes: 1 addition & 1 deletion libvips/foreign/pdfiumload.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ vips_foreign_load_pdf_class_init(VipsForeignLoadPdfClass *class)
_("Factor to scale by"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsForeignLoadPdf, scale),
0.001, 100000.0, 1.0);
0.0, 100000.0, 1.0);

VIPS_ARG_BOXED(class, "background", 14,
_("Background"),
Expand Down
2 changes: 1 addition & 1 deletion libvips/foreign/popplerload.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ vips_foreign_load_pdf_class_init(VipsForeignLoadPdfClass *class)
_("Factor to scale by"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsForeignLoadPdf, scale),
0.001, 100000.0, 1.0);
0.0, 100000.0, 1.0);

VIPS_ARG_BOXED(class, "background", 24,
_("Background"),
Expand Down
2 changes: 1 addition & 1 deletion libvips/foreign/svgload.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ vips_foreign_load_svg_class_init(VipsForeignLoadSvgClass *class)
_("Scale output by this factor"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsForeignLoadSvg, scale),
0.00001, 100000.0, 1.0);
0.0, 100000.0, 1.0);

VIPS_ARG_BOOL(class, "unlimited", 23,
_("Unlimited"),
Expand Down

0 comments on commit 62eaf9d

Please sign in to comment.