Blake Thompson
3b1c99ff1b
Moved set_alpha to src/image_util.cpp and out of image_32. Added a boolean response to premultiply_alpha and demultiply_alpha so that if it is changed in set_alpha and other locations like the python bindings for composite that the image can be restored to its original state. Removed blend from python bindings.
...
Ref #2633
2015-01-15 17:57:21 -06:00
Blake Thompson
0d2eb9cb5f
Updates for Ref #2594 and #2592 (Related to #2491 )
...
* Added support for scanline, stripped and tiled
* Added new configuration options for TIFF:
- method
- tile_height (Default 0)
- tile_width (Default 0)
- rows_per_strip (Default 0)
* Removed 'scanline' configuration option for TIFF.
* Changed RGBA TIFFs to be ASSOCALPHA rather then UNASSOCALPHA
2014-12-15 02:52:32 +00:00
Dane Springmeyer
fc0894634c
improve image tests
2014-12-05 11:36:50 -05:00
Blake Thompson
daecced552
A small modification to the image_tests removing some options not indended to be left on
2014-12-04 17:17:14 -05:00
Blake Thompson
bf5c532269
Series of changes for the tiff encoder:
...
* Added configuration options for the TIFF encoder. The options are:
- compression: adobe_deflate(default), deflate, lzw, none
- zlevel: 0-9
- scanline: 1,0 (Forces scanline encoding)
* Fixed bug in encoder with scanline where memory was being modified
* by TIFFWriteScanline. A buffer is now created for each row to prevent
* modification of the underlying image_data.
2014-12-04 17:11:33 -05:00
Blake Thompson
fa902bc97d
Removed logging accidently left in test.
2014-12-04 10:49:21 -05:00
Blake Thompson
e6c5f705e5
Fixed error with selection criteria for stripe vs tiled, added modulus check on length and width to select striped in some situations, changed bitspersample for RBGA. (ref #2491 )
2014-12-04 10:48:19 -05:00
Blake Thompson
cdaca0ba11
Updated tiff processing so now the encoder will utilize different types of data as well as will use Tile based encoding in most situations, if the image is large will revert to scanline based encoding.
2014-12-03 18:41:49 -05:00
Sandro Santilli
cd21789111
Fix false negative responses from python tests
...
Closes #2298
2014-07-14 18:34:20 +02:00
Dane Springmeyer
f058a481b7
minor whitespace fixes
2013-09-18 19:55:02 -07:00
Dane Springmeyer
365572322c
tests: disable the negative image test since this makes it hard to run the tests against older mapnik versions that do not have the fix
2013-07-23 18:38:57 -04:00
Dane Springmeyer
c011524b67
add mapnik.Image.premultiplied() to query status of pixel premultiplication
2013-07-02 16:01:23 -04:00
Dane Springmeyer
ba4d06a530
protect against negative image dimensions - closes #1927
2013-06-26 16:46:36 -04:00
Dane Springmeyer
0365d3e081
start centralizing filesystem operations in mapnik::util::fs - refs #1177
2013-06-02 19:28:24 -07:00
Dane Springmeyer
f7cad30f6c
re-enable tiff from string tests - refs #1805 - closes #1831
2013-05-13 09:25:05 -07:00
Dane Springmeyer
374e4af8e4
basic tests for tiff writer - refs #1831
2013-05-10 14:34:29 -07:00
Dane Springmeyer
48791815a2
Add tests for frombuffer as well - refs #1805
2013-05-09 08:46:46 -07:00
Dane Springmeyer
73f405a2fe
commment failing tiff test - refs #1831
2013-05-09 08:45:11 -07:00
Dane Springmeyer
db91494461
Add test for image.fromstring - refs #1805
2013-05-08 20:13:20 -07:00