Hopefully someone has come across a similar issue. I’d appreciate some feedback here.
I am trying to crop and save part of a larger .PSD file as a .PNG image.
The odd thing is that when I embed the .png image into my HTML page, I can’t see it.
But when I save that same part of the .psd file as a .JPG image - it shows up on my page! So the path to the image is correct. What is it then? Why PNGs are not showing up?
Details:
Adobe Photoshop Image.18 (.psd) – my original .psd file.
Does your png file look OK on your computer? As @WebMachine says that layer looks empty and png supports transparency but jpg does not and so will probably create a black or white image instead of a transparent one.
But as other have said you will not get a useful answer without supplying at least one of the files.
I seem to recall that browsers don’t support all colour modes and bit depths for png. May be worth checking those to make sure they are sensible for on-screen/on-line viewing.
I’m not familiar with Photo Shop, but it obviously has something to do with png transparency. Can you find any settings in PS regarding png transparency?
I’m not sure if Discourse does something to the images on upload.
What happens in you download the uploaded file and display it in html? I tried and it worked.
I don’t see either, but it looks like the page is still loading, but it’s been a long time. Inspect says “Could not load the image” on both images.
It did finally load, and I see the jpg, but not the png.
I can see both images on Firefox (57, which I know is out of date) and Chromium. What is puzzling me is the file size for the dimensions of the images.
I’ve not made any sense of the problem really. The file is unusually large for what it is. 24MB for a 204 x 474 png seems a lot.
If I put that file into an html page, it’s broken. It loads into Photoshop OK. If I change nothing and save a new file from PS and put that in html, it’s fine, and only 44.6KB now.
I’m on FF 60.0.1 64bit in Windows, just updated yesterday. Still waiting for it to load in Chrome…
I guess there is some kind of corruption in the file, I don’t get why it’s so big.
Glad to know it is visible somewhere in the universe )
Well, maybe my file-saving settings are affecting it. JPG images are fine but PNGs I can’t see no matter what combination of image-saving settings I try.
The PS file itself is HUGE. And the layout is over 3000px wide. I gotta scale it to human proportions somehow.
I hired a designer to do the layout part for me.
I am trying to adjust transparency, bit quality (8, 16), etc…
FWIW this file is the result of taking your original, reducing to 8 bit and saving. It’s down to 33KB.
It may be usable, but does not solve the mystery of your problem file.
Reducing the size is something I’d like to do also.
And the mystery… Well, I just spoke to the designer. He suggested saving it through Avocode - and it worked!
I see my png now! How cool is that! Moving on with the project.
I believe that something happens on my side when I save parts of the original .psd file in Photoshop. Still not sure exactly what that is.
Thanks so much for testing the file with me. I appreciate it.
thinking about it something i do if i want to save parts of a psd without changing everything is only have the bits i want visible - go to ‘image’ - ‘duplicate’ - tick the box that says ‘duplicate merged layers only’
then you should have a flattened copy of the bit you want. You can then resize that to whatever size you want via ‘image’ - ‘resize’. Then export for legacy.