-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New libtiff package #7345
Comments
comment:1
Should this belong to a different component? |
comment:2
Woops. Yep. |
comment:3
Builds fine on Mac OS X 10.6 and sage.math, and installs what look like the right libraries in the right place. What can I do to test it? I've marked it as "needs work" because the SPKG.txt file says "libjpeg" several places instead of "libtiff". Is the spkg-install file modeled after other ones currently in use? (Will drkirby complain about gnuisms, for instance, or is this derived from one of his spkg-install files?) |
comment:4
Oh, there is also a file SPKG.txt~ which should not be there. |
comment:5
See also here. |
comment:7
Updated version found here: http://sage.math.washington.edu/home/timdumol/libtiff-3.9.4.spkg This should fix the OS X 10.6 problems (c.f. #7344).
|
This comment has been minimized.
This comment has been minimized.
comment:8
http://libtiff.org says latest version is 3.6.1, yet this |
comment:9
The web page itself is outdated. The downloads page: ftp://ftp.remotesensing.org/pub/libtiff actually states that the latest package is 3.9.5. |
comment:11
New package here: http://sage.math.washington.edu/home/timdumol/libtiff-3.9.5.spkg |
This comment has been minimized.
This comment has been minimized.
comment:12
There are some problems on OS X:
By the way, according to ImageMagick's "identify" program:
So I think it's the right format to be opened by this library. Is there anything else I should check? |
comment:13
In the notebook, |
comment:14
I was actually working from the command line, but anyway, what about this part:
According to the earlier example, this should have said "TIFF". |
comment:15
By the way, I can successfully save the resized image. Somewhere along the line I reinstalled PIL, so I don't know if that's necessary. |
comment:16
Two things: since this package installs files into |
comment:17
Replying to @TimDumol:
May I ask why? Does it make any sense to convert a "lossless image" into a lossy format, i.e., why not convert it to e.g. PNG which any (GUI) browser should be able to display? (I know TIFF is also a "meta format", i.e. you can encapsulate JPEGs in a TIFF file, but John's example file doesn't look like it was such.) The only reason I can imagine is that it's easier to scale JPEG images than bitmaps, but unless we include the batteries by default, a simple |
Changed keywords from none to sd32 |
comment:19
Regarding the im.format printing as None, that's OK, since the format attribute is only defined if the image was loaded from a file. Regarding the action of Image.show(): Leif is right, using JPEG is a bad idea. Using TIFF is also a bad idea, for this purpose, as the PIL TIFF encoder only saves uncompressed TIFF files. They're big and slow. I second the idea of using PNG for Image.show(). But that really is a separate issue, and should be broken out as such. |
comment:20
Hmm, I see that JPEG is hard-coded into PIL 1.1.6. In PIL 1.1.7, im.show() uses a non-lossy format, and the user can override the viewer used by show(), so one custom-designed for Sage could be put in there if necessary. |
comment:22
outdated, should close |
This is used by PIL (c.f. #7273). Inclusion as an optional or even as a standard package would be helpful.
The package is here: http://sage.math.washington.edu/home/timdumol/libtiff-3.9.5.spkg
Component: packages: optional
Keywords: sd32
Author: Tim Dumol
Issue created by migration from https://trac.sagemath.org/ticket/7345
The text was updated successfully, but these errors were encountered: