Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
Took a stab at switching from PIL to Pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Oct 20, 2014
1 parent 02bf31c commit 325d1ba
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
Binary file modified docs/_static/example/href.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/example/illo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/example/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/example/urlsetanalysis-report/urlset-overlay.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flask==0.10.1
Jinja2==2.7.3
MarkupSafe==0.23
PIL==1.1.7
Pillow==2.6.0
PyYAML==3.10
Pygments==1.6
Sphinx==1.2.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'beautifulsoup4>=4.3.2',
'storysniffer==0.0.3',
'selenium>=2.42.1',
'PIL==1.1.7',
'Pillow==2.6.0',
'latimes-calculate>=0.3.0',
'Jinja2>=2.7.3',
]
Expand Down
4 changes: 2 additions & 2 deletions storytracker/images2gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def writeGifToFile(self, fp, images, durations, loops, xys, disposes):

# Write
fp.write(header)
fp.write(globalPalette)
fp.write(globalPalette or '')
fp.write(appext)

# Next frame is not the first
Expand All @@ -434,7 +434,7 @@ def writeGifToFile(self, fp, images, durations, loops, xys, disposes):
# Use local color palette
fp.write(graphext)
fp.write(lid) # write suitable image descriptor
fp.write(palette) # write local color table
fp.write(palette or '') # write local color table
fp.write('\x08') # LZW minimum size code
else:
# Use global color palette
Expand Down

0 comments on commit 325d1ba

Please sign in to comment.