Loading tiff files


tridiak
 

Is there any way to programmatically load tiff image files?
Or does there exist a library that can do such?

Mark


 



On Jan 26, 2021, at 3:45 PM, tridiak <tridiaknz@...> wrote:

Is there any way to programmatically load tiff image files?

Sure. All the standard APIs that load images (FYI, you didn't specify a platform) handle TIFF. It used to be the standard image format on OpenStep, so support is still pretty ubiquitous.

—Jens


Bill Pitcher
 

NSImage(contentsOf: heldURL )

On 27 Jan 2021, at 9:45 am, tridiak <tridiaknz@...> wrote:

Is there any way to programmatically load tiff image files?
Or does there exist a library that can do such?

Mark





Marco S Hyman
 

On Jan 26, 2021, at 3:45 PM, tridiak <tridiaknz@...> wrote:

Is there any way to programmatically load tiff image files?
Or does there exist a library that can do such?
NSImage can do the job.


tridiak
 

Ok. Thanks for help.
Google search gave me lots of ways of saving as tiff.
NSImage documentation not very informative what can open tiff.

On 27/01/2021, at 12:58 PM, Jens Alfke <jens@...> wrote:



On Jan 26, 2021, at 3:45 PM, tridiak <tridiaknz@...> wrote:

Is there any way to programmatically load tiff image files?

Sure. All the standard APIs that load images (FYI, you didn't specify a platform) handle TIFF. It used to be the standard image format on OpenStep, so support is still pretty ubiquitous.

—Jens


Marco S Hyman
 

On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.
NSImage opens lots of image file types: jpg, tiff, many raw formats, etc. Instead of thinking “tif” think “image file”.


 



On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.

Oh? It says so right in the class overview.

"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others."

—Jens


Alex Zavatone
 

Yep.

The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others. AppKit manages each format using a specific type of image representation object, whose job is to manage the actual image data. You can get a list of supported formats using the methods described in Determining Supported Types of Images.


It’s odd though that the link in the doc is a link to the same doc.



On Jan 27, 2021, at 6:13 PM, Jens Alfke <jens@...> wrote:



On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.

Oh? It says so right in the class overview.

"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others."

—Jens


Alex Zavatone
 

On Jan 27, 2021, at 6:25 PM, Alex Zavatone via groups.io <zav@...> wrote:

Yep.

The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others. AppKit manages each format using a specific type of image representation object, whose job is to manage the actual image data. You can get a list of supported formats using the methods described in Determining Supported Types of Images.


It’s odd though that the link in the doc is a link to the same doc.



On Jan 27, 2021, at 6:13 PM, Jens Alfke <jens@...> wrote:



On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.

Oh? It says so right in the class overview.

"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others."

—Jens



tridiak
 

My mistake. I should really stop skim reading.
Now I feel stupid.

On 28/01/2021, at 1:13 PM, Jens Alfke <jens@...> wrote:



On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.

Oh? It says so right in the class overview.

"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others."

—Jens


Alex Zavatone
 

Don’t worry.  We all fall into that trap - more often than you might expect.  You wouldn’t imagine how many times when I was preparing an email to the list when I reread what I was typing, looked at the docs again and realized I read over the solution and completely missed it.

Happy that there enough good people here to take their time to help us all out.  And while we’re at it, thanks to Mr. Snej for starting these lists after Apple got tired of running them.

- Alex Zavatone

On Jan 27, 2021, at 9:33 PM, tridiak <tridiaknz@...> wrote:

My mistake. I should really stop skim reading.
Now I feel stupid.

On 28/01/2021, at 1:13 PM, Jens Alfke <jens@...> wrote:



On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:

NSImage documentation not very informative what can open tiff.

Oh? It says so right in the class overview.

"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard formats such as TIFF, JPEG, GIF, PNG, and PDF among others."

—Jens



 



On Jan 28, 2021, at 9:23 AM, Alex Zavatone via groups.io <zav@...> wrote:

Don’t worry.  We all fall into that trap - more often than you might expect.  You wouldn’t imagine how many times when I was preparing an email to the list when I reread what I was typing, looked at the docs again and realized I read over the solution and completely missed it.

That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of Rubber Duck Debugging.)

Sorry I was snarky earlier…

—Jens


Sandor Szatmari
 

Jens,

On Jan 28, 2021, at 14:18, Jens Alfke <jens@...> wrote:



On Jan 28, 2021, at 9:23 AM, Alex Zavatone via groups.io <zav@...> wrote:

Don’t worry.  We all fall into that trap - more often than you might expect.  You wouldn’t imagine how many times when I was preparing an email to the list when I reread what I was typing, looked at the docs again and realized I read over the solution and completely missed it.

That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of Rubber Duck Debugging.)

Or, confessional debugging.  You find the problem while explaining how your code ‘works’ to someone else…

Sandor


Sorry I was snarky earlier…

—Jens