Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Add tiff support #8

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open

Add tiff support #8

wants to merge 28 commits into from

Conversation

Mr-Pi
Copy link

@Mr-Pi Mr-Pi commented Dec 1, 2017

No description provided.

evanmiller and others added 28 commits June 3, 2011 16:04
Does not support palette images.
Thanks to Tony Rogvall
…files with multiple DateTime values (["2005:09:19 17:32:03",[]]).
Added b&w format for read_info/1. Fixed problem with buggy TIFF file.
Enhancement to allow reading images already in memory
Added a clearer description of how to include the records.
Previous behavior: read/2 resulted in the pixmap list in the erl_image
record being sorted backwards by rownum, due to the use of the idiom of
prepending new elements to a list as the function is called recursively
(in the fun in read/2 itself).

write/2 would sort ascending by rownum, but that would then be reversed
via the fun given to lists:foldl, which also builds up the output list
by prepending.

The pixmap is thus output reversed.

New behavior: the pixmap list is kept in ascending order upon read (via
lists:reverse in raw_data/7). This is mostly on principle, since in any
case, write/2 now sorts *descending* before folding, resulting in the
output of the fold winding up being sorted in ascending order, as
desired.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants