Some graphic "Transparency" problem after recompile


#1

Hi to all,
i have recompiled whole Frogatto, on MAC OS X 10.6.6, afer a CLEAN SVN Download, but i have strange transparency problem on some graphics;
Seems that the problem is related to some PNGs images transparency color index number?? PNG Supports?? or what??
Please let me know what’s wrong!!

I have used as SDL’s Frameworks:
SDL 1.2.14
SDL image-1.2.10
SDL mixer-1.2.11
SDL ttf-2.0.10


#2

Can be a kind of PNG support that, for some case, has been disabled?


#3

Resolved!
Talking with Crimson_Penguin on the Mirc, we understand that the problem is the SDL_IMAGE version.
Infact i have used the latest one 1.2.10 but in the official release of Frogatto is used the 1.2.6
So using the SDL_IMAGE 1.2.6 all works correctly.
Other SDL stuff (main SDL, mixer and ttf) the latest releases are OK!
I suppose that Crimson_Penguin + Sirp (and other Frogatto’s Stuff) will works to understand that … no?? :slight_smile:

The curious thing is that in the latest 4 release (prior to the one used in the official) there are many fixes particularly for the MAC OS X.
I paste the latest 3 releases changelog:

1.2.10:

  • Fixed bug loading multiple images

1.2.9:

  • Fixed alpha premultiplication on Mac OS X and iPhone OS
  • Fixed checking for IMG_Init() return value in image loaders

1.2.8:

  • Added support for uncompressed PCX files
  • Added IMG_Init()/IMG_Quit() to prevent constantly loading and unloading DLLs
  • Added support for ICO and CUR image files
  • Added ImageIO loading infrastructure for Mac OS X
  • Added UIImage loading infrastructure for iPhone / iPod Touch

Thanks and Bye to all


#4

Hi to all again …
i check also with SDL_Image 1.2.7 and works correctly too!
The problem there is when use version =>1.2.8

so, i suppose, that one of these features/fix is the problem …

1.2.8:

  • Added support for uncompressed PCX files
  • Added IMG_Init()/IMG_Quit() to prevent constantly loading and unloading DLLs
  • Added support for ICO and CUR image files
  • Added ImageIO loading infrastructure for Mac OS X
  • Added UIImage loading infrastructure for iPhone / iPod Touch

What you think about??
See later …


#5

After Jetrel remove correctly the ICC Profile from Font Sheet image, finally we solved the problem.
The problem is then, as Crimson_Penguin tells initially, the Profile managed by new sdl_image version that shift the colors then the transparency color.
Thanks to all!!

Image with only update Font Sheet image (need now to fix all the other images).


#6

ONE MAN TOPIC! :smiley:

Problem completely solved using simple the wonderful ImageMagick.
After different attemps i found in the command-line “-strip” the solution.
The command “-strip” can be used both for Convert and Mogrify
i use Mogrify to change directly the original image.
so …

mogrify -strip *.png

I convert all images and tested with SDL_image 1.2.10 and all is OK!
Now if anyone of the Frogatto’s Staff wanna do this and put on SVN (sure … if this is considered necessary!)
See later…


#7

I didn’t have ImageMagick installed anymore since upgrading my OS, so instead I turned to the OS-included “sips”, and wrote this little one-liner to remove profiles only from images that have them (and thereby not mark everything as changed and have to upload it again):


#8

Crimson_Penguin, the script works perfectly too!
:slight_smile: