34 Commits

Author SHA1 Message Date
Luiz Américo Pereira Câmara
a76ab284a8 Apply prettier formatting 2025-04-12 12:57:31 -03:00
Luiz Américo
5bbd9a18cb
Support Jpeg Exif Orientation (#1482)
Co-authored-by: Franklin Strube <fstrube@morevang.com>
Co-authored-by: Luiz Américo Pereira Câmara <blikblum@users.noreply.github.com>
2023-12-03 07:48:00 -03:00
Libor M
ba62aeff11 fix Buffer() is deprecation warning #1114 2020-07-25 11:25:56 +02:00
Luiz Américo
30ec8b0c30 png: use predictor 1 (none) for interlaced images 2019-09-29 00:03:07 -03:00
Luiz Américo
c658bef0cc png: decode pixels when image is interlaced 2019-09-28 21:26:11 -03:00
Luiz Américo
a6af76467c Add prettier npm script and run it in *.js files 2019-01-07 20:51:06 -03:00
Luiz Américo
e3c7d64f7b Fix PDF corruption when adding PNG images with transparency (not alpha channel) 2018-12-24 19:22:01 -03:00
Luiz Américo
dfb5f932ea Avoid code duplication in copy image data routine 2018-12-24 09:02:25 -03:00
Luiz Américo
b7edc73318 Fix 16bit png files with alpha channel 2018-12-23 22:16:21 -03:00
Luiz Américo
acbeceb2b3 Use a loop to copy png image data instead of Buffer.copy 2018-12-23 20:30:40 -03:00
Luiz Américo
ffdda49bd6 Fix grayscale PNG images with alpha channel 2018-12-23 00:44:21 -03:00
Luiz Américo
faad6e82db Fix defining Mask for grayscale transparent PNG files 2018-12-22 22:48:02 -03:00
Luiz Américo
6488c534f7 Use sync version of zlib deflate method to compress png images 2018-12-21 19:40:44 -03:00
Luiz Américo
83f5f72431 Convert to EcmaScript (ES6+) (#859) 2018-11-29 08:14:45 -08:00
Devon Govett
7da47a58f5 Fix another document reference in png.coffee 2015-10-25 10:33:35 -07:00
Pedro Teixeira
d4604b4a74 fixes #433 2015-10-20 09:53:52 +01:00
Lee Symes
c0abc88a64 Fixed regression caused by CoffeeScript 1.9.0+.
This fixes #376
2015-03-17 16:41:32 +13:00
Devon Govett
ae28782eb1 Fix writing indexed PNG palettes 2014-04-09 09:51:59 -07:00
Devon Govett
876db9e067 Don't set the Length key on images. It will be set by the PDFReference class automatically 2014-04-09 09:51:43 -07:00
Devon Govett
f6c4b2c226 Free memory after embedding images 2014-03-23 17:37:13 -07:00
Devon Govett
b570ac219e Simplify image loading 2014-03-23 17:31:07 -07:00
Devon Govett
f8a40dba76 Make PDFDocument a node stream 2014-03-23 17:11:48 -07:00
Devon Govett
1305a9592a Switch to 2 space indentation 2014-03-23 12:25:09 -07:00
Devon Govett
a0901c75a0 Make sure we use global.setImmediate 2014-02-17 23:20:32 -08:00
Bob Zoller
dd8fb58092 fix a few max call stack size exceeded errors
resolves a RangeError when finalizing documents with many images and/or many pages.
2014-02-14 11:40:53 -08:00
Mark Hahn
4cb8edf4b2 removed DHT marker FFC4 from list of SOF markers 2013-07-04 11:40:48 -07:00
Devon Govett
39f4e9ea6a Separate png decoding into a separate library. See http://github.com/devongovett/png.js. 2012-04-07 01:38:03 -07:00
Devon Govett
b9da8ebedd Switch to using Node's built in zlib bindings. Fixes #48. 2012-04-03 19:28:59 -07:00
Devon Govett
fb7d8ceb7f Fix zlib issue with node 0.6. Closes #42. 2011-10-22 14:12:02 -07:00
Devon Govett
e60eae758d Fix a JPEG parsing issue with Progressive DCT 2011-08-23 12:49:45 -04:00
Devon Govett
14d9dddf2e PNG color palette decoding bug fix 2011-08-08 17:24:17 -04:00
Devon Govett
06ff164992 Reword comment 2011-07-13 01:10:46 -04:00
Devon Govett
cacc71c2f9 Fix a PDF embedding bug 2011-07-12 16:16:22 -04:00
Devon Govett
9215fc1b02 Initial commit 2011-07-09 22:57:00 -04:00