Lovell Fuller
47927ef47d
Shrink less, affine more, maintain performance #75
...
Affects interpolators with 4x4+ window size
e.g. Bicubic, LBB, Nohalo
Introduces blur before large affine
to improve large PNG reductions
2014-11-08 12:08:27 +00:00
Lovell Fuller
7537adf399
Add features from libvips 7.40+
...
Load TIFF from Buffer/Stream
Interlaced PNG output no longer needs tilecache
Option to disable PNG adaptive row filtering
2014-11-08 12:08:27 +00:00
Lovell Fuller
740838b47c
Prevent auto-rotate fail for libmagick formats #117
2014-11-08 12:07:47 +00:00
Lovell Fuller
f7c2a839ad
Add support for profile-less CMYK images #99
2014-11-06 11:30:19 +00:00
Lovell Fuller
333e8789f4
Include cmath, erroneously removed in 3a9a137f
2014-10-29 13:32:19 +00:00
Lovell Fuller
3a9a137f40
Modify C++ 11 to be MS-friendly #19
2014-10-29 13:16:16 +00:00
Lovell Fuller
97fc2a2a3a
Ensure resize error from C++ is wrapped
...
Thanks to @papandreou
2014-10-23 09:39:37 +01:00
Lovell Fuller
3e1be7a33a
Merge pull request #107 from papandreou/doNotUnrefUnparsableImages
...
Do not call g_object_unref when imageType comes out as UNKNOWN.
2014-10-23 09:23:37 +01:00
Andreas Lind
005c628352
Do not call g_object_unref when imageType comes out as UNKNOWN.
...
Avoids "(sharp:23220): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed" dumped to the console when an unsupported or invalid image is loaded.
2014-10-23 08:32:23 +02:00
Andreas Lind
1bd316de80
Pass errors as Error instances rather than strings.
2014-10-23 08:27:10 +02:00
Lovell Fuller
8bc1981891
Refactor C++ code
...
Split features into their own file
Style is becoming less C, more C++
2014-10-21 21:38:19 +01:00
Lovell Fuller
db6dc6431b
Add support for mirroring #62
2014-10-21 14:47:08 +01:00
Lovell Fuller
9f6cc33858
Memory leak mop-up of new feature spillage
2014-10-13 22:53:43 +01:00
Lovell Fuller
945d941c7b
Convert image to sRGB sooner for embed
2014-10-13 15:39:52 +01:00
Brandon Aaron
83b72a1ede
Add support for stand-alone, pre-resize, and post-resize extraction with a topOffset, leftOffset, width, and height.
2014-10-07 09:56:55 -04:00
Lovell Fuller
6190ca4307
Ensure conversion to sRGB occurs before background #99
2014-10-07 10:17:20 +01:00
Lovell Fuller
37cb4339e2
Import embedded colour profile, if present #99
2014-10-06 10:45:58 +01:00
Lovell Fuller
46f229e308
Use own Angle enum to wrap jcupitt/libvips@154796a
2014-10-06 10:22:45 +01:00
Lovell Fuller
fb0769a327
Improve image reference handling
2014-10-03 11:45:06 +01:00
Lovell Fuller
0cba506bc4
Allow embed with rgba background #86 #89
...
Small memory leak mop-up related to #94
2014-10-02 20:02:14 +01:00
Daniel Gasienica
6145231936
Add background
and flatten
APIs
2014-09-30 17:58:57 -07:00
Lovell Fuller
513b07ddcf
Add hasAlpha attribute to metadata API
...
Provides internal sharp_image_has_alpha method
Hopefully this helps with #91
2014-09-30 13:35:42 +01:00
Lovell Fuller
1c79d6fb5d
Add support for greyscale conversion #43
2014-09-16 11:22:26 +01:00
Lovell Fuller
3699e61c20
Improve support for extension-less output filenames
2014-09-07 08:59:11 +01:00
Lovell Fuller
2820218609
Add format property to output info
...
Output format may be derived from input format
2014-09-04 11:38:05 +01:00
Lovell Fuller
eb3e739f7b
Expose libvips thread pool size
2014-09-03 19:52:03 +01:00
Lovell Fuller
5728efd32b
Add support for gamma correction #43
2014-08-30 14:12:42 +01:00
Lovell Fuller
bac367b005
Notify V8 GC of libvips cache size #21
2014-08-26 23:28:58 +01:00
Lovell Fuller
0d89131f66
Prevent small memory leak with non-empty argv0 #21
2014-08-26 15:25:36 +01:00
Juliano Julio Costa
c5efb77bad
New withMetadata([boolean]) to keep metadata in the generated images.
2014-08-25 15:59:21 -04:00
Lovell Fuller
f2f3eb76e1
Add method for fast access to image metadata #32
2014-08-22 14:17:43 +01:00
Lovell Fuller
5fe945fca8
Add gravity support to crop #45
2014-08-21 11:01:25 +01:00
Lovell Fuller
8ef0851a49
Expose libvips' op-cache max items #76
2014-08-19 20:30:21 +01:00
Lovell Fuller
df3903532d
Initial Duplex Stream support
2014-08-07 14:00:34 +01:00
Lovell Fuller
46456c9a2a
Clear cached warnings after success
2014-08-06 11:34:16 +01:00
Chanon
d40bdcc6ac
Sends width and height as another parameter to the callback. Fixes issue #67
2014-07-20 23:52:28 +07:00
Lovell Fuller
1cce56b024
Use tile cache for interlace output
...
Doubles performance of Adam7 interlaced PNG output
2014-07-09 23:47:04 +01:00
Lovell Fuller
fbe5c18762
Expose depth of task queue
2014-06-25 23:21:39 +01:00
Lovell Fuller
4eb910fec9
Add support for bicubic and Nohalo interpolation #41
2014-06-08 20:46:03 +01:00
Lovell Fuller
f0a9d82bf7
Always convert to sRGB colourspace to prevent libwebp segfault #58
2014-06-07 22:49:15 +01:00
Lovell Fuller
9a05684302
Add withoutEnlargement option #36
2014-05-29 20:01:43 +01:00
Lovell Fuller
a94dd2b354
Add support for image rotation including EXIF auto-orient
2014-05-29 00:48:58 +01:00
Pierre Inglebert
15a519ebd9
update to nan 1.1.0
2014-05-26 09:51:53 +02:00
Pierre Inglebert
39688371a8
fix max factor #29
2014-05-24 10:29:33 +02:00
Lovell Fuller
276ba5228b
Add usage example and further unit test for new max option
...
Simplify max vs crop logic
2014-05-19 21:52:47 +01:00
Pierre Inglebert
88edad3fae
add max option #18
2014-05-19 20:18:26 +02:00
Lovell Fuller
308d1971d8
Recalculate residual float value for affine after shrink #26
...
Switch to static casts for double values
Add unit tests that previously would have failed
2014-05-18 11:39:05 +01:00
Pierre Inglebert
f68ba8ea57
fix progressive typo
2014-05-14 08:56:12 +02:00
Lovell Fuller
10496881f1
Add quality and compressionLevel options for output image. #24
2014-05-12 21:15:23 +02:00
Lovell Fuller
d635c297a2
Replace use of deprecated libvips conv method.
...
Ensure unref of mask to fix minor memory leak of ~150 bytes/image.
2014-05-12 21:15:23 +02:00