New issue 323 by Mat...@customcraftcreations.com: LZW TIFF support warning
on webpage/source
http://code.google.com/p/cocotron/issues/detail?id=323
After debugging my app for quite some time, trying to figure out why the
images for my IB
buttons weren't loading properly, I finally discovered it was because the
LZW compression
support for reading TIFF images is commented out.
There are no notes to this effect, but I can only guess it is to avoid
licensing issues with the LZW
algorithm.
I don't want to argue one way or another with that fact, but it would be
nice if there was either a
place on the website (a 'common issues' page, maybe?) where the lack of LZW
TIFF support
would be mentioned, or at least a better description in the code.
As an addendum, there is a (rather terse) NSLog message printed for this
error. However, it was
only after considerable digging that I found that such messages get printed
to the application
event queue, which is not exactly an easy place for finding error messages,
particularly for
debugging. Is there a way of rerouting NSLog messages to stdout so they
print out on the
console when launching from the command line? That would make debugging
considerably
easier. Thank you!
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 323 by cocotron: LZW TIFF support warning on
webpage/source
http://code.google.com/p/cocotron/issues/detail?id=323
LZW decoding just hasn't been implemented yet, there are no other reason
for not doing it. The GIF decoder
implements it, myself or someone just needs to take the time to do it for
TIFF. The image format reading support
is somewhat limited in general and needs more work, if people have specific
needs please make issues for them.
If you add -mconsole to your "Other Linker Flags" you'll get all NSLog's in
a console window.
I have my debug build configuration set up with -mconsole in the Other
Linker Flags build setting. The app runs with a console window open,
and NSLog messages show up there. Have you tried that setting yet?
Andy Balholm
(509) 276-9718
an...@balholm.com
Wouldn't it be a good idea to import external libraries for such
things? Instead of tweaking the original libs to fit The Cocotron I'd
leave them as an untouched copy in the repository and write wrappers
to get them working. This has the advantage to make it easy to follow
updates, reinventing the wheel each time is a lot of work.
I'm thinking about libraries like libjpeg <http://www.ijg.org/files/
README>, ICU <http://site.icu-project.org/> and others with a BSD-
compatible license.
> If the libraries get linked-in statically into Cocotron, how is
> that any different than just having the code in Cocotron
This is what I actually had in mind. I agree with Cris and you(?) on
requiring prerequisites at runtime is a bad idea.
While looking around in Cocotron's CoreGraphics (to fix image
stretching), I found it is based on OpenVG 1.0.1, but modified for
Obj-C. Updating OpenVG to the more recent 1.1 seems almost impossible
now, short of a rewrite. This is why I proposed wrappers.
Markus