Log file Viewer
Help
|
Karma
| Search:
#pil logs for Sunday the 24th of November, 2013
(
Back to #pil overview
) (
Back to channel listing
) (
Animate logs
)
[
12:07:49
] <
fictive
> so, question
[
12:08:43
] <
fictive
> if I have a gif-file and want to crop it and save it as gif again, how would I do this? I can't find any guides on this
[
13:36:35
] <
juzza1
> Image.crop(box)
[
13:36:36
] <
juzza1
> http://effbot.org/imagingbook/image.htm
[
13:47:00
] <
fictive
> that doesn't work for gifs
[
13:47:05
] <
fictive
> it only saves the first frame
[
13:52:36
] <
juzza1
> did you try to iterate through the frames and apply crop to each one of them? http://pillow.readthedocs.org/en/latest/reference/ImageSequence.html
[
13:55:43
] <
fictive
> I did not! =D
[
13:55:51
] <
fictive
> I found this, though
[
13:55:54
] <
fictive
> https://code.google.com/p/visvis/source/browse/vvmovie/images2gif.py
[
13:56:18
] <
fictive
> you know anything about this one?
[
14:03:31
] <
juzza1
> not really, no
[
14:03:45
] <
juzza1
> don't know much about pil(low) either, just started using it yesterday
[
14:12:16
] <
fictive
> well the one you linked looks like the implementation in images2gif
[
14:13:47
] <
juzza1
> ok