taskGNU Astronomy Utilities - Tasks: task #16096, Writing of TIFF files


You are not allowed to post comments on this tracker with your current authentication level.

task #16096: Writing of TIFF files

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Wed 15 Dec 2021 08:10:50 PM UTC
Should Start On:  Wed 15 Dec 2021 12:00:00 AM UTC Should be Finished on:  Wed 15 Dec 2021 12:00:00 AM UTC
Category:  Libraries Priority:  5 - Normal
Item Group:  Enhancement Status:  Postponed
Privacy:  Public Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Effort:  0.00

Wed 15 Dec 2021 08:12:54 PM UTC, comment #1: 

In the previous post I forgot to mention that Pablo Manuel Sanchez Alarcon suggested this in a post to bug-gnuastro.

Mohammad Akhlaghi <makhlaghi>
Project Administrator
Wed 15 Dec 2021 08:10:50 PM UTC, original submission:  

Currently Gnuastro's can only read from TIFF files, it can't write to them (see the lib/tiff.c file in Gnuastro's source)!

The main reason behind this was time: unlike JPEG (which is only one image per file), TIFF allows multiple images per file (like FITS extensions), so the libtiff library's writing functions are a little more complicated than those functions for reading.

As a result, I only implemented reading of TIFF files (which I needed at that moment), not writing of TIFF files!

If anyone is interested in doing this, please make a post here, its a good chance to learn professional APIs of important libraries!

I'd be happy to help. There are other examples of reading or writing to different file formats, like lib/eps.c (for writing EPS files), lib/jpeg.c (for reading/writing JPEG files), lib/pdf.c (for writing PDF files, which actually writes EPS, then compiles them to PDF), and of course, lib/tiff.c (that currently on reads from TIFF files).

Mohammad Akhlaghi <makhlaghi>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-15 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.9