It is currently Wed Apr 24, 2024 11:57 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Filter>Animation>Rippling Gray Background
PostPosted: Mon Apr 20, 2015 2:58 pm  (#1) 
Offline
New Member

Joined: Apr 20, 2015
Posts: 3
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 8.1
GIMP Experience: New User



I am trying to add the rippling effect to an image I created. The image I created has no background. The background is set to transparent. Whenever I try to apply the animation it makes many frames and applies the effect which is what I am looking for. However, it adds a gray background to every single frame. I have tried looking for a solution but have been unsuccessful. I ran into something that said to go to the script file and edit it with notepad it said to change RGB to RGB-IMAGE but instructions were not very clear and the pictures showing where in the code to make the change had been removed. I took my best guess as to where in the code to make the change and I got an error the next time I tried to run the rippling animation effect. I was able to return the script to its original and it is working as usual except it is still adding the gray background to my transparent gif. Your help will be greatly appreciated.

Thanks in advance!


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Mon Apr 20, 2015 3:30 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Hello robzilla, welcome to GimpChat.


Last edited by jontait2 on Mon Apr 20, 2015 3:41 pm, edited 1 time in total.

Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Mon Apr 20, 2015 3:33 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
:ninja At the top of your gimp, click where it says image Mode RGB. If RGB isn't selected, put a dot beside it and see if this helps.

_________________
Image


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Mon Apr 20, 2015 3:53 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
If the script you're referring to is ripply-anim.scm by Adam D. Moss, I think the amendment you were advised to make is to this line:
      (set! this-layer (car (gimp-layer-new out-imagestack
                                            width height RGB
                                            layer-name 100 NORMAL-MODE)))


But I think it should actually be RGBA-IMAGE, not RGB-IMAGE.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 4:43 pm  (#5) 
Offline
New Member

Joined: Apr 20, 2015
Posts: 3
Molly, Thank you for your reply. My Gimp is already set to image Mode RGB.

Jontait2, thanks for the welcome and, do I make the change where it says width height RGB to width height RGBA-IMAGE?

By the way, does anyone know who Adam D. Moss is? If so, can he be contacted?

Thanks again.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 4:58 pm  (#6) 
Offline
New Member

Joined: Apr 20, 2015
Posts: 3
I did try to change the RGB to RGBA-IMAGE and when I tried to run the script I got an error that says: Error: (: 1) eval: unbound variable: A-IMAGE


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 5:32 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
robzilla wrote:
Molly, Thank you for your reply. My Gimp is already set to image Mode RGB.

Jontait2, thanks for the welcome and, do I make the change where it says width height RGB to width height RGBA-IMAGE?

By the way, does anyone know who Adam D. Moss is? If so, can he be contacted?

Thanks again.

I would consider asking Ingo Lütkebohle at the GIMP Plugin Registry about contacting Adam D. Moss.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 7:57 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
This is what your image output should look like, but it's a default script so it's tricky to change, maybe best to use another script such as a flag script
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 8:00 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
:ninja
@robzilla
This version will automatically set the output image and the layers therein to the same image/layer modes as the input image:
Attachment:
ripply-anim_jthackv1.1b.scm [5.39 KiB]
Downloaded 150 times

Just save to your personal scripts folder.

Note that I've changed the name in the Gimp menu to "Rippling...(JThack1)" so this hacked version does not get mixed-up with official releases (especially since this is one of Gimp's "official" scripts distributed with Gimp packages).

Also note that you may get nasty edge effects unless you set the "Edge behavior" parameter to "Black/transparent".

I'm going to report the image mode problem as a bug, so there should eventually be a new official release of this script.


Last edited by jontait2 on Wed Apr 22, 2015 10:20 am, edited 3 times in total.

Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 9:08 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
The original advice to modify the script seems to have been this thread on GimpTalk:
http://www.gimptalk.com/index.php?/topi ... on-ripple/

Reported as a bug:
https://bugzilla.gnome.org/show_bug.cgi?id=748270


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 9:18 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
post deleted by Graechan

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Tue Apr 21, 2015 10:28 pm, edited 2 times in total.

Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 9:45 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Yes, that would solve robzilla's immediate problem, but it would mean that all output frame layers would have alpha channels irrespective of whether the input did or not, which is unnecessarily wasteful and can use up a lot of memory on a long animation.

The way I have coded it (and as I've submitted in my bugzilla report), the script will generate the output image and frame layers therein with only the color level actually required:
- if you start with a GRAY image and the active layer therein does not have an alpha channel, the output image will be of type GRAY and all the frame layers therein will not have alpha channels;
- if you start with a GRAY image and the active layer therein does have an alpha channel, the output image will be of type GRAY and all the frame layers therein will have alpha channels;
- and so on;
..which is how it should have been coded in the first place!


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 11:08 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Jontait2 I agree it's better to have the same image and layer type as the input image in the output image and I'm sure that's what the scripts author or Gimp will do

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Tue Apr 21, 2015 11:27 pm  (#14) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
jontait2 wrote:

It will probably be requested that you provide a patch for the fix, rather than a complete replacement script. While doing so is a pain (often requiring more effort to create the patch than to fix the script), it provides a clear way to see what you are changing, for both the devs who examine your fix and for the maintenance logs.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Wed Apr 22, 2015 12:36 am  (#15) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Jontait2 it would be better if you re-defined your hack to 'script-fu-ripply-anim-jt' so it would work along with the original script in case some one has used the original expecting it's output
Or someone loads your script and still get's the same result as the original

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Wed Apr 22, 2015 2:24 am  (#16) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Graechan wrote:
Jontait2 it would be better if you re-defined your hack to 'script-fu-ripply-anim-jt' so it would work along with the original script in case some one has used the original expecting it's output
Or someone loads your script and still get's the same result as the original


Agreed, done.
See post #9 above.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Wed Apr 22, 2015 5:01 am  (#17) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
saulgoode wrote:
It will probably be requested that you provide a patch for the fix, rather than a complete replacement script.

You were right!
Patch supplied.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Thu Apr 23, 2015 9:15 am  (#18) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
robzilla wrote:
Awesome this is producing the effect that I am looking for.

However, due to my lack of expertise I am having trouble doing what I need. Let me know if you have any ideas.

I am trying to get a gif where only part of the image flutters and the other stays static. I don't know how to upload a pic here so I will describe it. The picture has two objects in it. 1 is a flame and the other is a semi circle. I just want the flame to flutter and the semi circle to be static. However when I run the scripts it animates everything. The rippling script that I am using just makes many frames of my original image and applies distorts that produce the fluttering effect. Is there an easier way than generating the frames and then going back and adding the static image to the frames and going through the trouble of making sure it aligns perfectly well on all frames so that it in fact remains static?

Sounds like you need Saul Goode's Combine/Overlay Background script:
http://gimpscripts.com/2011/10/combineo ... ackground/

Just create your objects on separate layers (flames uppermost), run the ripply-anim script on the upper layer and then run:
FX-Foundry>Animation>Combine with background
This will add the lower layer (the semicircle) as background in every frame of the animation.

[ BTW please post replies in the public forum rather than sending me PMs (unless really necessary) - that way everyone gets to see the ongoing dialogue and can jump in and contribute if they so wish. ]


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Sun Apr 26, 2015 10:58 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
The bug has been fixed in master development branch.

That mitch accepted a total re-write of the script was entirely unexpected.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Filter>Animation>Rippling Gray Background
PostPosted: Mon Apr 27, 2015 2:26 am  (#20) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Well done Saul.


Top
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Sparkler Animation Effect - Filter

15

No new posts Attachment(s) MareroQ's new Halloween animation filter

7

No new posts Attachment(s) Broken images in Filter>Animation>Playback

6

No new posts Attachment(s) [SOLVED] stop feathering/anti-aliasing on gray heightmaps

5

No new posts Attachment(s) Benjamin Moore Gray Color Palette (Orange Palette Added)

26



* Login  



Powered by phpBB3 © phpBB Group