writing uncompressed tiff creates invalid file (Bug #4211)


Added by Eric S about 10 years ago. Updated almost 10 years ago.


Status:Done Start date:2015-02-23
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:highgui-images
Target version:2.4.11
Affected version:2.4.9 (latest release) Operating System:Any
Difficulty:Easy HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/3744

Description

The imwrite(*,*,params) function takes TIFFTAG_COMPRESSION tags, but specifying TIFFTAG_COMPRESSION, COMPRESSION_NONE results in an invalid file as libtiff does not want a "predictor" set, see here:
http://expertland.net/question/b6o3n6p9a72341db823b48nl98m91dx8n1/detail.html


Associated revisions

Revision 9eda2604
Added by Maksim Shabunin over 9 years ago

Merge pull request #4211 from alalek:fix_python_2_4

History

Updated by Vadim Pisarevsky almost 10 years ago

  • Category set to highgui-images

Updated by Philip L almost 10 years ago

PR was merged and ported to 3.0

  • Status changed from New to Done
  • % Done changed from 0 to 100

Also available in: Atom PDF