Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 11:33 pm
All times are UTC + 0
Image Combine
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jul 06, 2016 12:21 pm    Post subject:  Image Combine
Subject description: Combine images in a fast batch process
Reply with quote  Mark this post and the followings unread

Image Combine is a program that allows to combine images in a batch process.
It has 2 operators to work with, [Add] and [Difference].

[Add] takes image A as the base and draws image B on top of A.

[Difference] takes image A and image B and draws all different pixel in the specified "Difference Color".
Same pixel are kept. Complete transparent pixel are ignored.
The images need to have the same dimension.

Download: ImageCombine.zip Version 01.00.00.03

System Requirements: .NET 3.5 or newer installed.



Installation: simply copy it into an empty folder of your choice. Then start the exe.

Usage:
1. Load or Drag&Drop Images to the left list A
2. Load or Drag&Drop Images to the right list B
3. Choose the operator [Add] or [Difference]
4. Press [Start]
The new files are created in the same folder as the files in list A

If list A has a different number of files than list B, the tool applies to each file A every file B.
This way you can also combine multiple images into one or find the difference in multiple images.
Difference can be used for example to find animated pixel in a set of similar images.

Version 01.00.00.00
-first public release

Version 01.00.00.01
-(bugfix) ignores DPI setting in images. All images are set to DPI=96.

Version 01.00.00.02
-(bugfix) indexed palette images don't cause a crash anymore
-(update) preview implemented to show the operation on 2 selected images

Version 01.00.00.03
-(update) Custom Background Color can be set, which is converted into transparent when opening an image. The button is showing the selected RGB value.
-(update) option added to Invert Transparency on an image, to get the negative stencil

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Last edited by Lin Kuei Ominae on Fri Oct 21, 2016 8:16 am; edited 4 times in total

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Wed Jul 06, 2016 1:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Smaller size works. After some size, it combines with different sizes on Add.



ImageCmb.zip
 Description:

Download
 Filename:  ImageCmb.zip
 Filesize:  17.66 KB
 Downloaded:  25 Time(s)


Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jul 06, 2016 2:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, [Add] is a bit more robust, since it just draws B on top of A, where it doesn't matter if B is bigger or smaller. For a bigger B, the area outside A is simply ignored.

Since [Difference] expects to find for each pixel in A a pixel in B for the comparison, they need the same size.
If B has a different size, B is simply skipped and the next B loaded if present.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Wed Jul 06, 2016 2:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Do I get it right that this is pretty much a color mask applier? The Add function sounds useful for such.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jul 06, 2016 2:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

yes
My current SHP project also needs this. There i have 32 turret frames and 32 frames with a color mask. I need the color mask placed on top of the 32 turret frames, so i get holes in the turret at the right places (color mask being in the background color of the turret and the rest using transparent pixel).

I see already other ways to use this:
-one render pass with anti-aliasing against black background
-another render pass without anti-aliasing with the rendered object being slightly smaller
then apply the second set to the first, to remove the ugly anti-aliase against background (e.g. when rendering soft smoke/fire you need transparency and anti-aliase against background)

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Wed Jul 06, 2016 3:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

There is a problem with Add when image sizes is larger than some value. Even though both A and B
were of same size, the result of Add had reduced the size of B. Look at the attachment, inputs are
in 1 and 2 folders and result is in Add and Diff folders.

Edit: Looks like that there lack of DPI info on B that is in folder 2. Could be considered as input image
fault.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Oct 21, 2016 8:18 am    Post subject: Reply with quote  Mark this post and the followings unread

hmm, i just use the .NET Graphics.DrawImage method and simply draw B on A.
I'll see if there are any options to make it work with images that lack the DPI setting.

Thanks for testing. Smile

\Edit
new Version uploaded

Version 01.00.00.01
-(bugfix) ignores DPI setting in images. All images are set to DPI=96.

\Edit
new Version uploaded

Version 01.00.00.02
-(bugfix) indexed palette images don't cause a crash anymore
-(update) preview implemented to show the operation on 2 selected images

\Edit
I recently needed a bit more functionality from the tool and added it.

new Version uploaded
Version 01.00.00.03
-(update) Custom Background Color can be set, which is converted into transparent when opening an image. The button is showing the selected RGB value.
              This way you can turn for example all green pixel into transparent.
-(update) option added to Invert Transparency on an image, to get the negative stencil.
              for that it simply changes all alpha values >0 to 0 and all alpha=0 to 255. For those pixel with alpha=0 it uses the specified custom background color to set the RGB value of that pixel

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1645s ][ Queries: 13 (0.0091s) ][ Debug on ]