Author Topic: Need help with images  (Read 3311 times)

slippyblade

  • Full Member
  • ***
  • Posts: 42
    • View Profile
Need help with images
« on: August 07, 2015, 12:31:00 PM »
I've got everything working, AM is good, emulators are linked.  I'm having trouble with my layout images though.  On Windows it works fine.  On Linux, however, I can't get my PNGs to show up.  If I convert them to JPG they work, but I need transparency.

I'm attaching one of the layouts.  Could someone who knows more take a look and offer up some advice? 

Thanks!

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Re: Need help with images
« Reply #1 on: August 07, 2015, 04:33:49 PM »
Slippy-

I just took a quick look at your layout and it looks OK, except that your fe.add_image is set to .jpg instead of .png. Unless, you changed it to .jpg to get it to work.   

slippyblade

  • Full Member
  • ***
  • Posts: 42
    • View Profile
Re: Need help with images
« Reply #2 on: August 07, 2015, 04:55:25 PM »
Yeah, I was testing different formats.  It's weird, Attrac-Man works fine and it uses transparent PNG. For some reason mine don't work.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Re: Need help with images
« Reply #3 on: August 07, 2015, 05:26:16 PM »
I'll test it on my raspbian in a few minutes

slippyblade

  • Full Member
  • ***
  • Posts: 42
    • View Profile
Re: Need help with images
« Reply #4 on: August 07, 2015, 05:29:38 PM »
Thanks.  I'm using Ubuntu on a normal PC though. Shouldn't make a difference either way.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Re: Need help with images
« Reply #5 on: August 07, 2015, 06:32:28 PM »
OK, I had the same issue when I loaded your layout. And, it turns out that your .png files didn't covert properly. So, I used image viewer in raspbian and saved the tv.jpg as a png and everything worked as it should. I know you said that you could view the files outside am fine, but that was the fix. It could have been a permissions issue with the file, who knows. Here, I am uploading the tv.png for you to test. I renamed it to tv2. Oh, the linux image viewer I used was GPpicView. Let me know...

akafox

  • Hero Member
  • *****
  • Posts: 809
    • View Profile
Re: Need help with images
« Reply #6 on: August 07, 2015, 10:49:58 PM »
You omega using linux?..coming over from the dark side you are..hmm...yes? ;)
People want life easy..then complain about it

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Re: Need help with images
« Reply #7 on: August 08, 2015, 03:42:57 AM »
Fox-
Hey! I was just a little rusty. So, it was just like riding a bike.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
    • View Profile
    • new projects
Re: Need help with images
« Reply #8 on: August 20, 2015, 06:23:00 PM »
@slippyblade

There are two types (formats) of PNG files - both with .png extension:
PNG-8 with restricted color palette (aka "indexed color")
PNG-24 with full color palette

I've checked both files:
your original tv.png file was saved as PNG-8
and the one that omegaman saved was PNG-24 (which is usually the default format for image viewers and converters)

PNG-8 is not always supported - and it seems that this was your case.

slippyblade

  • Full Member
  • ***
  • Posts: 42
    • View Profile
Re: Need help with images
« Reply #9 on: August 20, 2015, 10:47:39 PM »
That makes sense.  I was using Paint.NET and when you save it gives you a couple options 8 bit, 24 bit, 32 bit, and Auto.  I used the auto setting.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
    • View Profile
    • new projects
Re: Need help with images
« Reply #10 on: August 21, 2015, 01:55:09 AM »
Maybe "Auto" really means "give me the smallest file size" - and PNG-8 best for reducing file size. But it really matters for website graphics where you really want to shave off those  few extra kilobytes.

You should choose 24-bit (with transparency).