Re: [Tiff] TIFF/EP

2023-04-06 Thread David C. Partridge
I found some information after a lot of googling!  I now have some sample
data that makes sense. 

Quick summary: Using data from the definition to the A302 TIFF Tag:



The value consists of:

 

- Two short, being the grid width and height of the repeated pattern.

- Next, for every pixel in that pattern, an identification code.

 

This identification code can be:

 

0 = Red

1 = Green

2 = Blue

3 = Cyan

4 = Magenta

5 = Yellow

6 = White 

 

and now looking at some data extracted from some TIFF files:

TIFF Tag(33421) 0x828d Type(3) ushort(2) ISO CFARepeatPattern: 2 2 

TIFF Tag(33422) 0x828e Type(1) ubyte(4) ISO CFAPattern: 0x00010102

EXIF Tag(41730) 0xa302 Type(7) undef(8) CFAPattern: 0x0002000200010102

It all begins to make sense.

 

Thanks

David

 

From: Sulau  
Sent: 06 April 2023 22:24
To: 'David C. Partridge' 
Cc: tiff@lists.osgeo.org
Subject: RE: [Tiff] TIFF/EP

 

I see. I can try to compile some easy understandable sample code for you to
explain how to write and read those tags using LibTiff.

But I have to take a closer look at the tags myself first. Maybe after
Easter.

I cannot say anything about their "interpretation" (i.e. meaning).  

 

Von: David C. Partridge [mailto:david.partri...@perdrix.co.uk] 
Gesendet: Donnerstag, 6. April 2023 21:36
An: tiff@lists.osgeo.org  
Cc: 'Sulau' mailto:su...@freenet.de> >
Betreff: RE: [Tiff] TIFF/EP

 

A302 is an EXIF tag with the same name as 828E (CFAPattern).   I know all
three are defined in the source code (grep for CFA).

My concern is sample code to guide me to interpret them correctly.

 

Thanks

David

 

From: Sulau mailto:su...@freenet.de> > 
Sent: 06 April 2023 19:58
To: 'David C. Partridge' mailto:david.partri...@perdrix.co.uk> >
Cc: tiff@lists.osgeo.org  
Subject: RE: [Tiff] TIFF/EP

 

Dear David,

 

there is an initial merge request (see
https://gitlab.com/libtiff/libtiff/-/merge_requests/337).

However, there are some issues at this stage. I was preparing an improvement
at the time. I could update it and then upload it to my repository. From
there you could get it and try it. Would that help?

 

CFARepeatPatternDim (828D) and CFAPattern (828E) are define, but what is the
tag-definition of A302?

 

Regards,

Su

 

Von: Tiff [mailto:tiff-boun...@lists.osgeo.org] Im Auftrag von David C.
Partridge
Gesendet: Donnerstag, 6. April 2023 14:39
An: tiff@lists.osgeo.org  
Betreff: [Tiff] TIFF/EP

 

Is there any support in 4.5.0 for TIFF/EP?

Does anyone know of any sample code that reads/processes/writes (e.g.)
CFARepeatPatternDim (828E) and CFAPattern (828E or possible A302).

 

Thanks

David 

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Remove TIFFCROP from LibTiff

2023-04-06 Thread Even Rouault


Le 07/04/2023 à 02:05, miguel medalha a écrit :


> I'm leaning towards releasing 4.5.1, with the current state of master, 
as the last version shipping with tiffcrop, tiff2pdf and tiff2ps
> being built with autoconf/cmake, with a warning in the release notes 
noting they will be moved into archive/tools for 4.6.0.


If that is indeed the final decision, can you please point me to other 
command line tools performing the same functions as tiff2ps and 
tiff2pdf? Please don't answer "ImageMagick". I very much cherish and 
heavily use it, but in this case it's just not the same.


The source code will remain, but you'll have to build it by yourself. 
Yes, that's undoubtedly inconvenient, but having unmaintained utilities 
that bring a endless flock of vulnerabilities that are often 
misinterpreted as vulnerabilities of the library isn't better for the 
project. If someone is serious about those utilities, they have to step 
up and fix them.


Even



___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


--
http://www.spatialys.com
My software is free, but my time generally not.
___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Remove TIFFCROP from LibTiff

2023-04-06 Thread miguel medalha
> I'm leaning towards releasing 4.5.1, with the current state of master, as the 
> last version shipping with tiffcrop, tiff2pdf and tiff2ps 
> being built with autoconf/cmake, with a warning in the release notes noting 
> they will be moved into archive/tools for 4.6.0.

If that is indeed the final decision, can you please point me to other command 
line tools performing the same functions as tiff2ps and tiff2pdf? Please don't 
answer "ImageMagick". I very much cherish and heavily use it, but in this case 
it's just not the same.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] TIFF/EP

2023-04-06 Thread Sulau
I see. I can try to compile some easy understandable sample code for you to
explain how to write and read those tags using LibTiff.

But I have to take a closer look at the tags myself first. Maybe after
Easter.

I cannot say anything about their "interpretation" (i.e. meaning).  

 

Von: David C. Partridge [mailto:david.partri...@perdrix.co.uk] 
Gesendet: Donnerstag, 6. April 2023 21:36
An: tiff@lists.osgeo.org
Cc: 'Sulau' 
Betreff: RE: [Tiff] TIFF/EP

 

A302 is an EXIF tag with the same name as 828E (CFAPattern).   I know all
three are defined in the source code (grep for CFA).

My concern is sample code to guide me to interpret them correctly.

 

Thanks

David

 

From: Sulau mailto:su...@freenet.de> > 
Sent: 06 April 2023 19:58
To: 'David C. Partridge' mailto:david.partri...@perdrix.co.uk> >
Cc: tiff@lists.osgeo.org  
Subject: RE: [Tiff] TIFF/EP

 

Dear David,

 

there is an initial merge request (see
https://gitlab.com/libtiff/libtiff/-/merge_requests/337).

However, there are some issues at this stage. I was preparing an improvement
at the time. I could update it and then upload it to my repository. From
there you could get it and try it. Would that help?

 

CFARepeatPatternDim (828D) and CFAPattern (828E) are define, but what is the
tag-definition of A302?

 

Regards,

Su

 

Von: Tiff [mailto:tiff-boun...@lists.osgeo.org] Im Auftrag von David C.
Partridge
Gesendet: Donnerstag, 6. April 2023 14:39
An: tiff@lists.osgeo.org  
Betreff: [Tiff] TIFF/EP

 

Is there any support in 4.5.0 for TIFF/EP?

Does anyone know of any sample code that reads/processes/writes (e.g.)
CFARepeatPatternDim (828E) and CFAPattern (828E or possible A302).

 

Thanks

David 

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] TIFF/EP

2023-04-06 Thread David C. Partridge
A302 is an EXIF tag with the same name as 828E (CFAPattern).   I know all
three are defined in the source code (grep for CFA).

My concern is sample code to guide me to interpret them correctly.

 

Thanks

David

 

From: Sulau  
Sent: 06 April 2023 19:58
To: 'David C. Partridge' 
Cc: tiff@lists.osgeo.org
Subject: RE: [Tiff] TIFF/EP

 

Dear David,

 

there is an initial merge request (see
https://gitlab.com/libtiff/libtiff/-/merge_requests/337).

However, there are some issues at this stage. I was preparing an improvement
at the time. I could update it and then upload it to my repository. From
there you could get it and try it. Would that help?

 

CFARepeatPatternDim (828D) and CFAPattern (828E) are define, but what is the
tag-definition of A302?

 

Regards,

Su

 

Von: Tiff [mailto:tiff-boun...@lists.osgeo.org] Im Auftrag von David C.
Partridge
Gesendet: Donnerstag, 6. April 2023 14:39
An: tiff@lists.osgeo.org  
Betreff: [Tiff] TIFF/EP

 

Is there any support in 4.5.0 for TIFF/EP?

Does anyone know of any sample code that reads/processes/writes (e.g.)
CFARepeatPatternDim (828E) and CFAPattern (828E or possible A302).

 

Thanks

David 

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Remove TIFFCROP from LibTiff

2023-04-06 Thread Even Rouault
I'm leaning towards releasing 4.5.1, with the current state of master, 
as the last version shipping with tiffcrop, tiff2pdf and tiff2ps being 
built with autoconf/cmake, with a warning in the release notes noting 
they will be moved into archive/tools for 4.6.0.


Even

Le 05/04/2023 à 21:11, Sulau a écrit :


I would prefer Even’s proposed solution to move problematic tools to 
archive/tools/.


The executables in use are still usable. If individual maintenance is 
absolutely necessary, the source code is still available (not only in 
the repository but also in the distribution).


Su


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


--
http://www.spatialys.com
My software is free, but my time generally not.
___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] TIFF/EP

2023-04-06 Thread Sulau
Dear David,

 

there is an initial merge request (see
https://gitlab.com/libtiff/libtiff/-/merge_requests/337).

However, there are some issues at this stage. I was preparing an improvement
at the time. I could update it and then upload it to my repository. From
there you could get it and try it. Would that help?

 

CFARepeatPatternDim (828D) and CFAPattern (828E) are define, but what is the
tag-definition of A302?

 

Regards,

Su

 

Von: Tiff [mailto:tiff-boun...@lists.osgeo.org] Im Auftrag von David C.
Partridge
Gesendet: Donnerstag, 6. April 2023 14:39
An: tiff@lists.osgeo.org
Betreff: [Tiff] TIFF/EP

 

Is there any support in 4.5.0 for TIFF/EP?

Does anyone know of any sample code that reads/processes/writes (e.g.)
CFARepeatPatternDim (828E) and CFAPattern (828E or possible A302).

 

Thanks

David 

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] TIFF/EP

2023-04-06 Thread David C. Partridge
Is there any support in 4.5.0 for TIFF/EP?

Does anyone know of any sample code that reads/processes/writes (e.g.)
CFARepeatPatternDim (828E) and CFAPattern (828E or possible A302).

 

Thanks

David 

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff