Commit Graph

12 Commits

Author SHA1 Message Date
Kleis Auke Wolthuizen 0337c09700
Cleanup gettext handling (#2695)
Use GLib's i18n support instead of copying and pasting that
logic into its own header. This deprecates the vips/intl.h
header in favour of glib/gi18n.h.
2022-02-27 15:27:28 +00:00
John Cupitt a046f26095 better falling back on profile load
This patch makes the icc operations fall back to the built-in profiles more
gracefully.
2021-04-24 17:44:25 +01:00
Lovell Fuller 40c4b93ee5 Compress fallback profiles with zlib
Reduces binary size by 580KB, ~17% at -O2
2021-02-26 19:18:49 +00:00
Kleis Auke Wolthuizen 9246094033 Fix function pointer cast issues
It is undefined behavior in C and C++ to cast a function pointer
to another type and call it that way. This does work in most native
platforms, however, despite it being UB, but in WASM it can fail.

See:
https://emscripten.org/docs/porting/guidelines/function_pointer_issues.html
2020-06-30 13:35:41 +02:00
John Cupitt dfb714e8fe minor reformat 2020-06-13 03:51:40 +01:00
John Cupitt d2d63f4ac4 revise profile_load
seems to work!
2019-08-08 13:23:28 +01:00
John Cupitt 4af242b599 fix travis compiler warnings
- older libpng don't have consts decls for some set/get funcs
- use g_ascii_strcasecmp() on program text strings (instead of strcasecmp)
2019-02-20 12:49:59 +00:00
Lovell Fuller 97a98bcb7d Ensure once is invoked once, prevent profile use-after-free 2019-01-25 11:33:40 +00:00
John Cupitt 1824c64c06 break >80 char line 2019-01-17 08:59:14 +00:00
Lovell Fuller a264f812ac Ensure ICC profile data is freed after use 2019-01-16 21:49:47 +00:00
John Cupitt f768029298 make the savers use profile_load
tiff, jpeg and png save all use profile_load to attach profiles
2019-01-11 06:30:06 +00:00
John Cupitt 28999aa5b6 add vips_profile_load()
and use it in icc_transform
2019-01-10 22:48:21 +00:00