Andrew Murray
e107ed6fcf
Allow for an empty line in EPS header data
2017-12-24 21:12:48 +11:00
wiredfool
b8d6fd57fa
Merge pull request #1860 from radarhere/register_extensions
...
Added register_extensions method
2017-09-22 15:59:04 +01:00
Samuele Kaplun
c07ce878d7
Fix EPS import
...
Fixes EPS import by adding the missing "showpage" Postscript command
to the end of the gs call.
See: https://bugs.ghostscript.com/show_bug.cgi?id=698272
Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
2017-09-09 12:01:38 +00:00
Andrew Murray
567351f632
Added register_extensions method
2017-09-04 20:32:07 +10:00
Andrew Murray
bcd1fb7908
Added dBATCH parameter to ghostscript command
2017-06-22 20:31:14 +10:00
Andrew Murray
798fde57ca
Removed unused imports
2017-03-03 21:38:19 +11:00
Andrew Murray
0b93853fd8
Removed duplicate imports
2017-03-03 21:38:19 +11:00
wiredfool
8421a076ac
Merge pull request #2253 from jdufresne/devnull
...
Send unwanted subprocess output to /dev/null
2017-02-22 10:10:03 +00:00
Andrew Murray
16c8b01026
Replaced broken URL with web.archive.org URL
2017-02-18 15:53:01 +11:00
Jon Dufresne
cecdb2af61
Send unwanted subprocess output to /dev/null
...
Avoids unnecessary creation of temporary files as well as unnecessarily
storing process output in memory. The temporary files would sometimes
remain and not be cleaned up.
2017-01-26 17:31:29 -08:00
Andrew Murray
58b5c9187d
Replaced absolute PIL imports with relative imports ( #2349 )
2017-01-17 13:22:18 +00:00
wiredfool
1a43da7a8b
Removed 'Debugging' open_ppm call that didn't check file provided parameters for sanity
2016-10-03 07:27:02 -07:00
Andrew Murray
392d567352
Added CMYK mode for opening EPS files
2016-04-13 18:27:46 +10:00
Andrew Murray
9176633d60
Specified exception type
2015-12-10 09:22:36 +11:00
wiredfool
fb17bf3d20
Merge pull request #1478 from baumatron/pillow_fix_eps_gs_command
...
Fix command to invoke ghostscript for eps files.
2015-12-07 14:15:51 +00:00
Andrew Murray
e9a6a96053
Specified exception type
2015-12-02 16:23:49 +11:00
Brian Baumhover
d37a8c7222
Fix command to invoke ghostscript.
2015-10-08 00:16:33 -05:00
Andrew Murray
d21430234e
Improved consistency of checks for flush
2015-09-02 23:48:22 +10:00
Andrew Murray
c6b13d294f
Flake8 fixes
2015-08-25 22:27:18 +10:00
Andrew Murray
f5df0b86fc
Fixed PSDraw stdout Python 3 compatibility
2015-07-31 20:59:59 +10:00
Andrew Murray
4c02ae4061
Fixed _binary handling in _accept methods
2015-06-18 10:12:12 +10:00
Andrew Murray
3c7e37d2d7
Replaced old-style classes
2015-05-27 00:07:21 +10:00
Andrew Murray
ee34d6843b
Further health fixes
2015-04-24 18:24:52 +10:00
Andrew Murray
ebc6996ba5
Changed list comprehension variable name to avoid redefinition
2015-04-24 16:00:08 +10:00
hugovk
b885c04388
EPS parser: don't index blank lines
2015-03-26 14:06:54 +02:00
hugovk
8f9e338303
flake8 + typo: infile_temo -> infile_temp
2014-09-14 12:08:31 +03:00
hugovk
1de128d6b6
Merge branch 'master' into flake8
2014-09-14 10:23:51 +03:00
wiredfool
81076d5f29
Don't copy input file for GS if not necessary, length variable name fix
2014-09-02 23:21:02 -07:00
wiredfool
ee46f45b96
Remove unused code, tighten up readline for all the line endings
2014-09-02 23:20:41 -07:00
wiredfool
8f75cc2bbf
Don't search for the imagedata if we're not going to do anything with it
2014-09-02 23:20:33 -07:00
wiredfool
9b35a4538d
Read the offset using original fp
...
Read the rest of the text data using one of the line ending
wrappers.
2014-09-02 23:20:23 -07:00
wiredfool
8193566ff1
Try to open the file in universal line ending mode, fallback to prev behavior
2014-09-02 23:20:05 -07:00
hugovk
42610c0ecd
flake8
2014-08-28 17:18:54 +03:00
hugovk
8de95676e0
flake8
2014-08-26 16:47:10 +03:00
wiredfool
618a79c1c6
Merge from master, pre-unittest conversion
2014-06-03 14:42:22 -07:00
wiredfool
54173d2c67
Cherry-pick of portions of patch a500ca1393
, many shortcut ops added, no functional changes
2014-05-09 21:36:15 -07:00
eliempje
d3192dd930
Update EpsImagePlugin.py
...
FIXED issue #302 : https://github.com/python-imaging/Pillow/issues/302
EPS file can have binary preview. Header is now also read binary.
Also fix for resizing EPS. Resolution is now 2 dimensional and dependend on bbox and size.
2014-05-07 13:36:35 +02:00
eliempje
2cd6d416b2
Bugfix: EPS thumbnail failed
...
EPS thumbnail failed to resize correctly due to incorrect resolution argument (should be a function of the image size and bounding box). This is fixed in this commit.
2014-04-12 13:38:39 +02:00
wiredfool
82d7524add
made has_ghostscript a method, using it from test_imagefile
2014-04-04 13:33:54 -07:00
wiredfool
1e331e3e6a
Removed tempfile.mktemp, fixes CVE-2014-1932 CVE-2014-1933, debian bug #737059
2014-03-14 15:56:41 -07:00
Alex Clark ☺
5750d5d6ef
Merge pull request #474 from sciunto/bool
...
Maint: minor patch on booleans + travis
2014-01-31 13:16:38 -08:00
wiredfool
a549e77bd8
Fix hang by using temp file and command line args instead of stdin
2014-01-21 23:18:24 -08:00
wiredfool
8ce2faa8c9
enable eps test in test_imagefile, test passes
2014-01-21 23:17:47 -08:00
cgohlke
4446f05ac0
Fix saving EPS to open file objects on Python 2.x
...
Fix issue #470 and #479
2014-01-21 21:14:32 -08:00
François Boulogne
ead121d951
MAINT replace is False by not
2014-01-08 22:07:35 -05:00
Esteban Santana Santana
8d27167fc7
More python3 fixes.
...
Changed the way the translate command that is passed to ghostscript is generated. This should now work on both python2.6+ and python3.
2013-11-20 02:54:31 -06:00
Esteban Santana Santana
3d1cd63afd
We need to write bytes not strings.
...
Python3 compatibility issue, we need to write bytes to buffers and pipes, not strings. This should still work in python2.6+.
2013-11-20 02:41:35 -06:00
Esteban Santana Santana
9cd654917d
Changed the Ghostscript() function inside of EpsImagePlugin to use subprocess.Popen() instead of the deprecated os.popen().
2013-11-20 01:32:06 -06:00
Esteban Santana Santana
7989378bfd
Added a way to specify the render size for EPS files.
...
There is now a scale parameter that you can pass in to the EpsImageFile.load() function. This parameter is used to specify at what scale Ghostscript renders the EPS internally. Scale needs to be an integer, and all of the internal structures (image size and bounding box) are scaled based on that parameter.
2013-11-17 01:26:44 -06:00
Christoph Gohlke
caba4e33ba
Fix AttributeError: 'module' object has no attribute 'spawn'
2013-03-08 11:15:28 -08:00