TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Transparent background, update multiple images
Pages:
1
Transparent background, update multiple images
Nathbo
Posts: 388
December 16, 2013, 02:08:39 pm
Hello,
I have to deal with crap images but that is the way it is.
So I have now 160X160 quality images (which will become small 40X40 icons) in jpg format.
But the background is white, I need to have that transparent.
What is the best way to make that happen (maybe some code in Stencyl directly??)
Or use a tool that will modify like 600 images !
Right so I just want to clear the fact that when I import if I choose the white somehow not all the white is transparent so it does not do the trick
Thanks
« Last Edit: December 16, 2013, 02:22:13 pm by Nathbo »
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
miaubian
Posts: 99
December 16, 2013, 02:32:19 pm
photoshop can do batch processing, maybe that will help?
letmethink
Posts: 2545
December 16, 2013, 02:53:31 pm
Transparency and .jpeg's don't mix well.
~Letmethink
Nathbo
Posts: 388
December 16, 2013, 03:03:54 pm
Hmmm I don`t have photoshop, as well I can convert to other formats if need be as long as they are supported by Stencyl..
So any ideas ?
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
gplar
Posts: 1115
December 17, 2013, 03:10:59 am
I fear you have tedious work ahead.
The problem with jpeg-s, as you discovered, is that the background (or any other color) is not uniform white, which causes whitish borders when picking it as transparent.
I havenĀ“t found any good way to fix this, apart from manually editing each image and saving as png.
Nathbo
Posts: 388
December 17, 2013, 08:08:42 am
That is what I feared
Does anyone know if there is a way to select all the pixels in an image that are the same color (and not next to each other) ?
I might try to fix the borders problems by selecting those different colors and then making them transparent as well
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
Nathbo
Posts: 388
December 17, 2013, 08:38:07 am
I read a lot about this yesterday and found a tool that would let me modify in batch, as long as I know what needs to be done.
So I found to change the white color to transparent
But now I probably need to change all the greyscales outside my black line (which is the border of the image) to black pixels.
Is there a way to acheive this ?
This is the tool that I plan to use
http://www.imagemagick.org/script/command-line-options.php
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
miaubian
Posts: 99
December 17, 2013, 12:58:42 pm
maybe show us some example images?
Nathbo
Posts: 388
December 17, 2013, 02:12:54 pm
I think I found the best way to modify my images, but there is one step missing that I need to be able to batch if possible with that tool (or other tricks)
Once my background is transparent, I can select the border and just change everything in greyscale to black (see attached slides)
I go in SumoPaint (on the web)
do a select on the exterior of my image (where it is transparent)
then select borders (change value to 1)
then on all the selected pixels I apply black with the brush
any ideas ?
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
Pages:
1