Author Topic: Image Not Showing Up  (Read 1427 times)

DreamsDied13101

PRO Supporter

Image Not Showing Up
« on: February 17, 2016, 01:17:38 pm »
Referencing: http://vgcollect.com/item/97804

I have added a few items on this site and this is the first that the item image came up as blank when I was done. Not empty as though an image was not added, but it just shows up as a black square.

The file is a PNG file from the Nintendo.com website and it shows up fine on my computer. I tried editing the image a second time. Maybe once the edit is approved it will show up?

Any thoughts or help would be appreciated!
The Day That Dreams Died 01/31/01


desocietas

Re: Image Not Showing Up
« Reply #1 on: February 17, 2016, 01:35:27 pm »
Heya! Can you save the file as a jpg and then resubmit? The database doesn't accept png :)
Currently playing:
FFXIV (PC), The Witcher (PC), Monster Hunter World: Iceborne (PS4)
twitch.tv/desocietas

Re: Image Not Showing Up
« Reply #2 on: February 17, 2016, 02:46:13 pm »
Heya! Can you save the file as a jpg and then resubmit? The database doesn't accept png :)
I don't think that's necessarily true.  I've uploaded quite a few png files recently and they all worked.  They were converted to jpg after they were uploaded it seems, but I uploaded png files.


aliensstudios

Re: Image Not Showing Up
« Reply #3 on: February 17, 2016, 03:16:22 pm »
Heya! Can you save the file as a jpg and then resubmit? The database doesn't accept png :)
I don't think that's necessarily true.  I've uploaded quite a few png files recently and they all worked.  They were converted to jpg after they were uploaded it seems, but I uploaded png files.
They prefer JPG files because it works better. I used to submit all PNG's but after a while I noticed a lot of the submissions were corrupted so now I simply submit in the JPG format. Makes my life easier and the admins too.
"I collect vidya games and vidya game accessories, I tell you what."

desocietas

Re: Image Not Showing Up
« Reply #4 on: February 17, 2016, 03:17:16 pm »
That may be true, ctracy87, but sometimes PNGs come through as black images. I saw the edit to resubmit the image from the OP, and it was a black square to replace another black square. Usually that indicates that the system is only seeing a transparent image (with no pixels), I believe.

If the image is opened in a image editor and saved as a JPG, it should all be good.  :)
Currently playing:
FFXIV (PC), The Witcher (PC), Monster Hunter World: Iceborne (PS4)
twitch.tv/desocietas

Re: Image Not Showing Up
« Reply #5 on: February 17, 2016, 06:16:32 pm »
That may be true, ctracy87, but sometimes PNGs come through as black images. I saw the edit to resubmit the image from the OP, and it was a black square to replace another black square. Usually that indicates that the system is only seeing a transparent image (with no pixels), I believe.

If the image is opened in a image editor and saved as a JPG, it should all be good.  :)
from my experience with SMF, if you save the PNG file with the save for web option, it should alleviate the issue with png files.  I used to run an smf forum that exclusively dealt with png images for their transparency.


DreamsDied13101

PRO Supporter

Re: Image Not Showing Up
« Reply #6 on: February 20, 2016, 01:07:00 pm »
Thanks for all of the replies. Almost every image I have used on this site is PNG, but I totally understand if they freak out sometimes.

I tried it again with a JPG. I'll see if the update gets approved.
The Day That Dreams Died 01/31/01


Re: Image Not Showing Up
« Reply #7 on: February 24, 2016, 06:40:47 pm »
Actually PNGs are fine. You just need to be aware that transparent areas will appear black, and not white. I discovered the real issue a few weeks ago. Here's what I posted in the hidden admin section:


Yep. I finally figured out what makes images appear black on items! It comes down to the wrong file extension applied to an image. Like switching .PNG to .JPG.


Let's pretend I scan an image and the device saves it to my computer as SCAN001.jpg. Next I go into Windows Explorer and rename the image to have a different extension. So something like SCAN001.png. If I were to upload that image to VGCollect it would come out black. Many programs like web browsers or even OS thumbnails ignore the written extension.


I'm uncertain to how Matt wrote the site by my guess is that when the algorithm goes to encode an image it first determines the format of the uploaded image by it's extension. At this point it breaks because it starts reading the image data incorrectly. PNG and JPG for example use very different methods of compression. Instead of determining the format by the given extension it needs to actually read a bit of the file first to figure out what it is before proceeding.

tripredacus

Re: Image Not Showing Up
« Reply #8 on: February 25, 2016, 10:26:24 am »
My image editor (Fireworks) uses PNG by default but I always export my images to be JPG. It is because my editor makes "real" PNG files, not the flattened ones that other applications make. With these "real" PNG files, vector information is retained and some websites do not like them.

Re: Image Not Showing Up
« Reply #9 on: February 25, 2016, 11:10:26 am »
How is Fireworks doing these days?  I haven't used it since the Macromedia owned it.  ;D

By the way, this is a statement from Adobe on the handling of PNG by Fireworks:
Quote
Technically speaking, Macromedia chose PNG (which stands for Portable Network Graphics) as the native file format for Fireworks because the format has both open source and proprietary characteristics. In most applications, the default file format is proprietary, meaning other applications can't open it. PNG, however, is an open source file format. Some graphic applications and browsers can open PNGs too. However, they can only read the graphical portion of a PNG's file information. Fireworks PNG files contain a second "chunk" of data that other applications can't read, which contains proprietary information about things like slicing, interactivity, and any Live Effects that may have been applied.

Basically PNGs are flat, it's just that other info is hidden in a chunk that only Fireworks can read. Quite ingenious.  Edit: Photoshop does something similar where it can embed ruler guides into JPGs.
« Last Edit: February 25, 2016, 11:12:18 am by badATchaos »

tripredacus

Re: Image Not Showing Up
« Reply #10 on: February 25, 2016, 12:07:06 pm »
Well I'm still using an old version. I have Fireworks MX 2004. I've only used this version and before that Fireworks 2, from college days.