GIMP Chat
http://gimpchat.com/

Made An Animated GIF With An Ofnuts Script
http://gimpchat.com/viewtopic.php?f=25&t=18220
Page 1 of 2

Author:  ofnuts [ Fri Apr 17, 2020 3:54 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Just type "ofnuts" in Google and the first suggestion is the right one.

Otherwise: http://sourceforge.net/projects/gimp-to ... s/scripts/

Author:  teapot [ Fri Apr 17, 2020 8:46 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Useful script, thank you Ofnuts :tyspin

I wonder if it would be worth having an option for the user to specify a maximum number of frames produced? For example when the layer to be scrolled is more tiled less frames are needed.

e.g. for a layer of size image 640x480 with Step V -5 of course the script generates 96 frames.

But I made the layer a 2x2 tile, so only need 48 frames. I can get this by deleting the unwanted frames but that would be more awkward the more frames are involved.

(Minor point but the champagne images aren't showing in the ofn-scroll-layer.html page, think the filenames changed case).

Image

Author:  Tas_mania [ Fri Apr 17, 2020 9:47 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

The plugin looks good with excellent documentation. This is just the animation ofnuts made from the html.


Image


I'm going to finish a gif I started with the old plugin before I start with this one. I suspect there is a new effect hiding in these plugins.

It's not easy writing a plugin that is used across multiple systems. Also in animation the eye seems to be drawn to any defect in the animation.
I've found bubbles are easy because the beginning and end can just be a space in the 'flow'.

Hi teapot. You started all of these rising bubbles :) The following deletes every second file either even or odd numbers on linux:

rm -f *[13579].png

rm -f *[24680].png


Note. If you use the top one then file 2 becomes file 1 after you re-number. Running it again would delete 2 files in the series. That means alternate between these and re-number if removing multiple files.

Author:  ofnuts [ Sat Apr 18, 2020 3:08 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

teapot wrote:
I wonder if it would be worth having an option for the user to specify a maximum number of frames produced? For example when the layer to be scrolled is more tiled less frames are needed.

e.g. for a layer of size image 640x480 with Step V -5 of course the script generates 96 frames.

But I made the layer a 2x2 tile, so only need 48 frames. I can get this by deleting the unwanted frames but that would be more awkward the more frames are involved.

Give a max number, no, but a pair of tiling factors, yes.

teapot wrote:
(Minor point but the champagne images aren't showing in the ofn-scroll-layer.html page, think the filenames changed case).


As far as I can tell they have matching cases in the ZIP and in the HTML (I'm on Linux, so case-sensitivity of file names is a fact of life). The final animation is a WEBP image that is supported in decent browsers.

Author:  ofnuts [ Sat Apr 18, 2020 5:28 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Updated with support for tiles.

Author:  Tas_mania [ Sat Apr 18, 2020 6:10 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Image


Maybe this should come with some sort of health warning? :rofl

This started as 400 frames and I reduced it to 200, then 100 using the method above.

Author:  teapot [ Sat Apr 18, 2020 9:37 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Tas_mania, I'm going boggle eyed :hehe

ofnuts wrote:
Give a max number, no, but a pair of tiling factors, yes.
Thank you :bigthup

ofnuts wrote:
As far as I can tell they have matching cases in the ZIP and in the HTML (I'm on Linux, so case-sensitivity of file names is a fact of life). The final animation is a WEBP image that is supported in decent browsers.
Thanks, it was me mucking up my directory :oops:

Image

Author:  ofnuts [ Sun Apr 19, 2020 5:18 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

teapot wrote:

[ Image ]


Cleverly done :)

Author:  Tas_mania [ Mon Apr 20, 2020 6:47 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Hi ofnuts.
I found a problem using the scroll-layer script. I would like to animate this image horizontally.
Image


With settings of 1 horizontal step and 1 horizontal tile I get 3840 layers at 87Gb image size. That's too big for my computer to use. Is it possible to get less layers? The script works OK with animated GIFs but I like making 1280X720px images for video.

Author:  ofnuts [ Mon Apr 20, 2020 7:14 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Your image is 960px (zoomed at 25%, so 3840px wide). If each frame is shifted 1px, you need 3840 frames for a full cycle... if you had less frames the animation wouldn't be continuous. If you want less frames use a bigger step or a smaller image o( tile the image). Note also that the layer is much taller (4x) than necessary... this costs you RAM.

Author:  Tas_mania [ Mon Apr 20, 2020 7:40 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Your absolutely right. I reduced the image size by 50% and used Horizontal Steps =1 and Horizontal Tiles =2.
The animation works perfectly.

Now I changed the Canvas Size to 1280X720 and it looks good.
Reason for the blank space is for a background image.

This is a base size for HD video.
Anyone using the script with big images will discover this problem. It's not the script. :clap

If the script shifts each frame by 1 pixel this could be increased to 10 pixels.
That would result in less frames and the animation would still look smooth IMHO.

It looks like you aimed for professional animation. I think you achieved that.

Author:  ofnuts [ Tue Apr 21, 2020 2:55 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Tas_mania wrote:
Reason for the blank space is for a background image


The layer doesn't need be the size of the image (of course, if you use ofn-interleave-layers later in the process, all you frames will have the size of the image...). If you look at the example that comes with the script, the bubbles layer is much smaller than the image.

Author:  Tas_mania [ Tue Apr 21, 2020 6:08 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Image


Finished the cars animation. A cut-down from a video clip - they are Holdens no longer in production.

Author:  JimmyMarco [ Tue Apr 21, 2020 8:59 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Hello, :)

Pretty animation Tas_mania.

A little detail to make more "realistic"... add shadows under the cars.

Have fun. :)
@+++

Author:  Tas_mania [ Tue Apr 21, 2020 5:39 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Thanks Jimmy Marco for the suggestion.
I experimented and used 'Long Shadow' and cut it off below the cars so it looks like its only the road.

Image

Author:  JimmyMarco [ Wed Apr 22, 2020 2:55 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Hello, :)

I think it's too dark and too strong.

I have tried with a simple black line aligned with the bottom of each car wheels...
3 pixels thickness, 90 opacity, and fade each front and back of cars :

Attachment:
Shadows01.png
Shadows01.png [ 1.24 KiB | Viewed 5881 times ]

Attachment:
Shadows02.png
Shadows02.png [ 10.39 KiB | Viewed 5881 times ]

As you work on transparency with the png's cars, it will be easier for you.
Perhaps it'll be better with 4 pixels thickness... you'll see as you prefer.

Have fun. :)
@+++

Author:  Tas_mania [ Wed Apr 22, 2020 4:43 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Thanks Jimmy Marco.
That's a good idea. I already used the drop shadow so maybe next time.

Image


This time I used ofn-interleave-layers to mix the left moving cars with the right moving cars.

A good learning experience for me and appreciate the help from friends in France.
Just realised - Australia drives on the LHS not RHS. What was I thinking LoL.

BTW. Some cars are 'tailgating' other cars. I think it happens all over the World :)

Author:  racer-x [ Wed Apr 22, 2020 5:41 am ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Looks good Tas. Here's something, similar?

Attachment:
RoadRunner.gif
RoadRunner.gif [ 1.02 MiB | Viewed 5862 times ]

Author:  Tas_mania [ Wed Apr 22, 2020 5:45 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Hi racer - nice background animation - good to see the coyote and road runner are keeping to the wrong side of the road :)

Author:  teapot [ Wed Apr 22, 2020 11:41 pm ]
Post subject:  Re: Made An Animated GIF With An Ofnuts Script

Very nice cars animation Tas_mania :jumpclap

I like your idea to have a scrolling background racer-x :clap

Have given it a try:

Image

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/