Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
kellessdee

Command Line Image Filters

Recommended Posts

Hey there everyone, I spent a little while looking to no luck (and I have to leave for work in 15min)... Maybe you can help.

 

Well I am currently looking for any kind of image filters (specifically a gaussian blur or something like that...although any cool effects filters would be pretty cool) that can be run from the command line in windows...

 

for example say

filter.exe source_image destination_image [other_args,]

 

or something like that. I need it so the software doesn't need to be opened + no gui.

 

If you guys could find or already know where anything like this is, it would be greatly appreciated.

 

If not I could probably look into making my own... I just figure it would be easier if any already exist.

Share this post


Link to post
Share on other sites

Oh, I guess I should've mentioned my intent.

 

See I started working on a real-time blur script for rmxp (only rmvx can blur bitmaps real-time) and have discovered that ruby (well at least 1.8.5) is WAY too slow to do real-time blurs. It took 8 seconds to blur just the title screen... I am assuming because the bitmap class is some kind of low level function, it can blur bitmaps in rmvx with ease, but when translating it to just ruby it is too slow.

 

So I have decided to try out running external filters on the bitmap and returning the new bitmap, but the easiest way (that I can see) is to use ruby's Kernel class, which has a method called system which runs commands through a sub shell. Which is why I need a filter that can be run from the command line, and I would prefer just the filter.exe or whatever so it is easier for other's to implement without making them have to install something like image magick, and thus distrubuting projects easier.

 

I only assume that something like this might exist, as I have a h2qx filter that I can ONLY run from the command line (which would be cool...if I could easily apply it to the entire game screen)

Share this post


Link to post
Share on other sites

RMVX WIN lol

 

Well I believe ruby is in version 1.9.2, it may be more efficient for such a matter. Are you referring to the blie function that bitmaps have, like what happens when you open a menu or the default battle system?

 

I also saw here where you made a attempt at this script, what is that one lacking?

 

Also I'm just curious, did you know Ruby and then RGSS?

 

 

Share this post


Link to post
Share on other sites

Yea that's the one I am referring to! Since I have been looking into rgss 2 and I really wish I could use it! (well actually that's kind of a lie...I have recently been able to get rgss 2 to work in rmxp, although I would now have to write everything from scratch...which I actually plan on doing for me and my friends' project I am working on)

 

The only issue with the one I made is that it isn't a TRUE blur and it only works for a still screen...I want to be able to blur any bitmaps in real-time, efficiently. And actually now that I think about it, I should really look into running .rb scripts from rmxp in that same way, I am pretty sure that would invoke the installed interpreter on the users system rather than the built-in interpreter... hmmmm

 

My history with ruby/rgss, was that I attempted to learn rgss a long time ago (before I really knew anything about programming) and failed, then after properly learning how to program I learned ruby first, then after learning ruby I moved to rgss.

 

Although there is still much for me to learn of course!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...