[GRASS-dev] images2gif.py in grass

Hi,

I'm currently developing new tool for animation (wxpython-based
replacement of wxwidgets-based xganim, coming soon to addons) and I
would like to include the possibility to export the animation not only
as a sequence of images. It seems to me that the easiest possibility
is to use script images2gif.py [1] for creating animated gif, which is
under BSD license. Would it be possible to have it in grass?

Thanks,
Anna

[1] http://visvis.googlecode.com/hg/vvmovie/images2gif.py

Ahoj Anna,

On Tue, Oct 16, 2012 at 3:20 PM, Anna Kratochvílová <kratochanna@gmail.com> wrote:

Hi,

I’m currently developing new tool for animation (wxpython-based
replacement of wxwidgets-based xganim, coming soon to addons) and I
would like to include the possibility to export the animation not only
as a sequence of images.

Wow, looks a great addition.

It seems to me that the easiest possibility
is to use script images2gif.py [1] for creating animated gif, which is
under BSD license. Would it be possible to have it in grass?

As far as I can undestand, the BSD license is not fully compatible with GPL unless it is either the New BSD License/Modified BSD License or the Simplified BSD License/FreeBSD License, which have been verified as GPL compatible by FSF [1]. Maybe you could consider to use ImageMagik instead, which is released under Apache 2 license, which seems compatible with GPL3 [3].
Anyhow I’m not an expert and maybe someone may correct me if I’m wrong.

Thanks,

madi

[1] http://en.wikipedia.org/wiki/BSD_licenses
[2] http://www.imagemagick.org/script/license.php
[3] http://www.apache.org/licenses/GPL-compatibility.html


Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

2012/10/16 Margherita Di Leo <dileomargherita@gmail.com>:

Ahoj Anna,

Hi

As far as I can undestand, the BSD license is not fully compatible with GPL
unless it is either the New BSD License/Modified BSD License or the
Simplified BSD License/FreeBSD License, which have been verified as GPL
compatible by FSF [1]. Maybe you could consider to use ImageMagik instead,
which is released under Apache 2 license, which seems compatible with GPL3
[3].
Anyhow I'm not an expert and maybe someone may correct me if I'm wrong.

Yes you are wrong... Your first link answer the question, "New" BSD
is compatible with GPL, Anna you can use images2gif.py

Thanks,

madi

[1] http://en.wikipedia.org/wiki/BSD_licenses
[2] http://www.imagemagick.org/script/license.php
[3] http://www.apache.org/licenses/GPL-compatibility.html

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

Hi Anna,
i would prefer to convert the images in a "real" video format to avoid
the limitations of GIF.
Maybe you could try to use PyMedia[1],[2] (well, its pretty old) or
utilize mencoder[3] to create the videos?

[1] http://pymedia.org
[2] http://pymedia.org/tut/src/make_video.py.html
[3] mencoder 'mf://*.png' -mf type=png:fps=10 -ovc lavc -lavcopts
vcodec=wmv2 -oac copy -o animation.avi

Best regards
Soeren

2012/10/16 Anna Kratochvílová <kratochanna@gmail.com>:

Hi,

I'm currently developing new tool for animation (wxpython-based
replacement of wxwidgets-based xganim, coming soon to addons) and I
would like to include the possibility to export the animation not only
as a sequence of images. It seems to me that the easiest possibility
is to use script images2gif.py [1] for creating animated gif, which is
under BSD license. Would it be possible to have it in grass?

Thanks,
Anna

[1] http://visvis.googlecode.com/hg/vvmovie/images2gif.py
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Luca

On Tue, Oct 16, 2012 at 3:41 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

2012/10/16 Margherita Di Leo <dileomargherita@gmail.com>:

Ahoj Anna,

Hi

As far as I can undestand, the BSD license is not fully compatible with GPL
unless it is either the New BSD License/Modified BSD License or the
Simplified BSD License/FreeBSD License, which have been verified as GPL
compatible by FSF [1]. Maybe you could consider to use ImageMagik instead,
which is released under Apache 2 license, which seems compatible with GPL3
[3].
Anyhow I’m not an expert and maybe someone may correct me if I’m wrong.

Yes you are wrong…

Yes you are right and I’m happy to be wrong, I completely missed the (new) … :smiley:

Your first link answer the question, “New” BSD
is compatible with GPL, Anna you can use images2gif.py

Thanks,

madi

[1] http://en.wikipedia.org/wiki/BSD_licenses
[2] http://www.imagemagick.org/script/license.php
[3] http://www.apache.org/licenses/GPL-compatibility.html

ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Hi Soeren,

gif is a nice simple option how to present 'moving images'. It is
widely supported and we don't need any external dependency in case of
using images2gif.py. I would like to see this option even if we were
able to export a real video.

Vaclav

On 16 October 2012 15:42, Sören Gebbert <soerengebbert@googlemail.com> wrote:

Hi Anna,
i would prefer to convert the images in a "real" video format to avoid
the limitations of GIF.
Maybe you could try to use PyMedia[1],[2] (well, its pretty old) or
utilize mencoder[3] to create the videos?

[1] http://pymedia.org
[2] http://pymedia.org/tut/src/make_video.py.html
[3] mencoder 'mf://*.png' -mf type=png:fps=10 -ovc lavc -lavcopts
vcodec=wmv2 -oac copy -o animation.avi

Best regards
Soeren

2012/10/16 Anna Kratochvílová <kratochanna@gmail.com>:

Hi,

I'm currently developing new tool for animation (wxpython-based
replacement of wxwidgets-based xganim, coming soon to addons) and I
would like to include the possibility to export the animation not only
as a sequence of images. It seems to me that the easiest possibility
is to use script images2gif.py [1] for creating animated gif, which is
under BSD license. Would it be possible to have it in grass?

Thanks,
Anna

[1] http://visvis.googlecode.com/hg/vvmovie/images2gif.py
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,

2012/10/16 Sören Gebbert <soerengebbert@googlemail.com>:

i would prefer to convert the images in a "real" video format to avoid
the limitations of GIF.
Maybe you could try to use PyMedia[1],[2] (well, its pretty old) or
utilize mencoder[3] to create the videos?

creating video output, eg. using `mencoder` could be added later
(another dependency, will not work on Windows). I would suggest to
start with something which will work on all supported platforms
without any extra dependency (which seems to be `images2gif`).

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2012/10/16 Vaclav Petras <wenzeslaus@gmail.com>:

gif is a nice simple option how to present 'moving images'. It is
widely supported and we don't need any external dependency in case of
using images2gif.py. I would like to see this option even if we were
able to export a real video.

agreed, Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2012/10/16 Martin Landa <landa.martin@gmail.com>:

Hi,

Hi

2012/10/16 Vaclav Petras <wenzeslaus@gmail.com>:

gif is a nice simple option how to present 'moving images'. It is
widely supported and we don't need any external dependency in case of
using images2gif.py. I would like to see this option even if we were
able to export a real video.

agreed, Martin

me too...

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

Where should this script be placed? It could be a grass module,
however I need to call the writeGif function directly to avoid saving
images to disk (writeGif accepts PIL images).

Anna

Hi,
i hope i do not start a flame war. :slight_smile:

2012/10/16 Martin Landa <landa.martin@gmail.com>:

Hi,

2012/10/16 Vaclav Petras <wenzeslaus@gmail.com>:

gif is a nice simple option how to present 'moving images'. It is
widely supported and we don't need any external dependency in case of
using images2gif.py. I would like to see this option even if we were
able to export a real video.

agreed, Martin

IMHO animated GIF's have so many limitations i wouldn't support it for
GIS related map animations at all. The results will be to horrible.

Some arguments against it:
* Very small color range support: 8 bit per pixel == 256 colors for a picture
* True color is only supported when creating 256 bit tiles in a single picture,
  each tile can use different parts of a 24 bit RGB color space
* Only suitable for small animations and low-resolution film clips
* No control over animation frame rate/animation flow/pausing while
playing GIF's

Best regards
Soeren

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2012/10/16 Sören Gebbert <soerengebbert@googlemail.com>:

Some arguments against it:
* Very small color range support: 8 bit per pixel == 256 colors for a picture
* True color is only supported when creating 256 bit tiles in a single picture,
  each tile can use different parts of a 24 bit RGB color space
* Only suitable for small animations and low-resolution film clips
* No control over animation frame rate/animation flow/pausing while
playing GIF's

these limitations should be noted in the manual (please Anna), but
it's not the reason why the tool developed by Anna shouldn't support
animated GIF output. Of course support for video output is very
important, and should be implemented in some way (probably with extra
dependency, eg. mencoder or so).

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Sören,

On Tue, Oct 16, 2012 at 4:15 PM, Sören Gebbert <soerengebbert@googlemail.com> wrote:

Hi,
i hope i do not start a flame war. :slight_smile:

2012/10/16 Martin Landa <landa.martin@gmail.com>:

Hi,

2012/10/16 Vaclav Petras <wenzeslaus@gmail.com>:

gif is a nice simple option how to present ‘moving images’. It is
widely supported and we don’t need any external dependency in case of
using images2gif.py. I would like to see this option even if we were
able to export a real video.

agreed, Martin

IMHO animated GIF’s have so many limitations i wouldn’t support it for
GIS related map animations at all. The results will be to horrible.

Some arguments against it:

  • Very small color range support: 8 bit per pixel == 256 colors for a picture
  • True color is only supported when creating 256 bit tiles in a single picture,
    each tile can use different parts of a 24 bit RGB color space
  • Only suitable for small animations and low-resolution film clips
  • No control over animation frame rate/animation flow/pausing while
    playing GIF’s

GIF’s have also pro’s, for example I use them in presentations, they usually are more handy to show than videos, you can just add them as images. Of course the option to export regular video as well, if technically possible, would be a plus.

Ciao madi


Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

On Tue, Oct 16, 2012 at 4:23 PM, Margherita Di Leo
<dileomargherita@gmail.com> wrote:

Hi Sören,

On Tue, Oct 16, 2012 at 4:15 PM, Sören Gebbert
<soerengebbert@googlemail.com> wrote:

Hi,
i hope i do not start a flame war. :slight_smile:

2012/10/16 Martin Landa <landa.martin@gmail.com>:
> Hi,
>
> 2012/10/16 Vaclav Petras <wenzeslaus@gmail.com>:
>> gif is a nice simple option how to present 'moving images'. It is
>> widely supported and we don't need any external dependency in case of
>> using images2gif.py. I would like to see this option even if we were
>> able to export a real video.
>
> agreed, Martin

IMHO animated GIF's have so many limitations i wouldn't support it for
GIS related map animations at all. The results will be to horrible.

Some arguments against it:
* Very small color range support: 8 bit per pixel == 256 colors for a
picture
* True color is only supported when creating 256 bit tiles in a single
picture,
  each tile can use different parts of a 24 bit RGB color space
* Only suitable for small animations and low-resolution film clips
* No control over animation frame rate/animation flow/pausing while
playing GIF's

GIF's have also pro's, for example I use them in presentations, they usually
are more handy to show than videos, you can just add them as images. Of
course the option to export regular video as well, if technically possible,
would be a plus.

The gif output would be something you get quickly and easily and it's
ideal for presentations (as Madi said). I would also export the
sequence of images to let the 'advanced' users make anything what they
want.

Anna

Ciao madi

--
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev