Date
1 - 13 of 13
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 |
|
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 )
toggle quoted message
Show quoted text
On 27 Jan 2021, at 9:45 am, tridiak <tridiaknz@...> wrote: |
|
Marco S Hyman
On Jan 26, 2021, at 3:45 PM, tridiak <tridiaknz@...> wrote:
NSImage can do the job. |
|
tridiak
Ok. Thanks for help.
toggle quoted message
Show quoted text
Google search gave me lots of ways of saving as tiff. NSImage documentation not very informative what can open tiff.
|
|
Marco S Hyman
On Jan 26, 2021, at 5:25 PM, tridiak <tridiaknz@...> wrote:
NSImage opens lots of image file types: jpg, tiff, many raw formats, etc. Instead of thinking “tif” think “image file”. |
|
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.
toggle quoted message
Show quoted text
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.
|
|
Alex Zavatone
This has a little more info that may be useful.
toggle quoted message
Show quoted text
|
|
tridiak
My mistake. I should really stop skim reading.
toggle quoted message
Show quoted text
Now I feel stupid.
|
|
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.
toggle quoted message
Show quoted text
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
|
|
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:
Sandor
|
|