sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.37k stars 462 forks source link

Python Imaging Library interface #6741

Open wdjoyner opened 15 years ago

wdjoyner commented 15 years ago

The attached patch implements several functions providing a simpler interface to the Python Imaging Library. For example, you can sharpen the image of an image on the internet you have the url of and save it to Sage's tmp subdirectory.

Apply:

Component: packages: standard

Work Issues: doc, font_manager

Branch/Commit: u/chapoton/6741 @ 3fd7a6e

Issue created by migration from https://trac.sagemath.org/ticket/6741

wdjoyner commented 15 years ago

Attachment: trac_6741-pil.patch.gz

requires pil-1.1.6, applies to 4.1.1.rc2

wdjoyner commented 15 years ago

Description changed:

--- 
+++ 
@@ -1 +1,3 @@
 The attached patch implements several functions providing a simpler interface to the Python Imaging Library. For example, you can sharpen the image of an image on the internet you have the url of and save it to Sage's tmp subdirectory.
+
+
7c09a680-e216-4024-bb8e-9bfd4aa7f313 commented 15 years ago
comment:4

This sage-devel thread has a discussion about making PIL a standard spkg. The vote for doing so was carried out in that thread.

jasongrout commented 15 years ago
comment:5

This looks very nice. However, the doctests write to SAGE_ROOT/tmp, which means that a normal user cannot run doctests on this file. Isn't there somewhere else that we should write temporary data during a doctest? Maybe using SAGE_TMP or something like that?

jasongrout commented 15 years ago
comment:6

I guess there isn't a SAGE_TMP. How about a temporary directory under .sage?

7c09a680-e216-4024-bb8e-9bfd4aa7f313 commented 15 years ago
comment:7

Replying to @jasongrout:

I guess there isn't a SAGE_TMP. How about a temporary directory under .sage?

Yes.

jasongrout commented 15 years ago
comment:8

Nice work; thanks for doing this!

Marking as "needs work" for the following reasons:

wdjoyner commented 14 years ago
comment:9

Replying to @jasongrout:

Nice work; thanks for doing this!

Marking as "needs work" for the following reasons:

Arrgghh ... Just saw this now, going through old emails.

I will try to work on these referee comments/suggestions now. It probably needs rebasing anyway. Sorry for the late reply.

wdjoyner commented 14 years ago
comment:10

Good news: it applies fine and does not need rebasing.

Bad news: Now I can't even get the code to work. I've tried on an imac (which requires some extra work to get libjpeg to install) and on an ubuntu machine. Probably I'm missing something obvious, but I don't know what it is.

fchapoton commented 11 years ago

Attachment: trac_6741_cleanup1.patch.gz

fchapoton commented 11 years ago

Description changed:

--- 
+++ 
@@ -1,3 +1,5 @@
 The attached patch implements several functions providing a simpler interface to the Python Imaging Library. For example, you can sharpen the image of an image on the internet you have the url of and save it to Sage's tmp subdirectory.

-
+Apply:
+* [attachment: trac_6741-pil.patch​](https://github.com/sagemath/sage/files/ticket6741/5adc0b82e6f8245c71386ccf3335b290.gz)
+* [attachment: trac_6741_cleanup1.patch](https://github.com/sagemath/sage-prod/files/10645862/trac_6741_cleanup1.patch.gz)
fchapoton commented 11 years ago

Work Issues: doc, font_manager

fchapoton commented 11 years ago
comment:12

ok, here is a cleanup patch.

There is an issue with fontmanager that I do not understand

fchapoton commented 11 years ago
comment:14

Can one mark in some way the tests that depends on the presence of libpeg ?

Something like # optional libjpeg ?

fchapoton commented 10 years ago

Commit: fea091d

fchapoton commented 10 years ago

Branch: u/chapoton/6741

fchapoton commented 10 years ago

New commits:

9ec5654added pil.pi - wdj:wq
831223dtrac_6741_cleanup1.patch
fea091dtrac #6741 whitespace cleanup
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 8 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

af73aebMerge branch 'u/chapoton/6741' into 7.2
1348bb6no print
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 8 years ago

Changed commit from fea091d to 1348bb6

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 8 years ago

Changed commit from 1348bb6 to 3fd7a6e

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 8 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

3fd7a6eMerge branch 'u/chapoton/6741' in 7.3.rc0