Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Convert a .png.css file to .png format

New Here ,
Dec 02, 2018 Dec 02, 2018

Hi,

I am very new to Adobe. I have asked a customer to send me images in png format. But they sent me in .png.css format. When I click on the file it opens up in Dreamweaver with CSS code displayed. Is there any way I can convert to a png image?

Thanks in advance.

Ryan

2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 31, 2018 Dec 31, 2018

CSS (even if called xyz.png.css) is completly differen from an image (PNG, TIFF, JPEG, ...).

So the correct answer to the initial question is: No, there is no way to convert.

The reason is: A CSS file is no image file but a text file that is intended to be interpreted by browsers.

The really only possibility for getting a PNG file in your case is to ask again for a PNG file. If they do not have the picture as PNG file format, they may send a Photoshop file (.PSD), a TIFF file (.TIF or .TIFF), a JP

...
Translate
Adobe
Community Expert ,
Dec 02, 2018 Dec 02, 2018

It may or may not be a .png. You can’t convert css to a png, so either it’s css (cascading style sheet) or it’s an image (png).

Is the code you are seeing for style info? (Post a screen shot if you are not sure.)

  • If yes, he sent the wrong file. It’s a css file.
  • If no, it may be a png and he accidentally added the .css. Rename the file to remove the .css and leave the .png. Does that fix it?

If not, ask for a new file that is really a png and an image file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2018 Dec 02, 2018

Did your customer use Photoshop to Extract their PSD image to a Dreamweaver web page?  I ask because PNG is the output option for images.  And Extract creates a  CSS stylesheet file for use on the web.   This could all be very confusing for someone who is not well trained in the use of Photoshop & Dreamweaver for creating web pages.  See link below.

How to extract assets from PSD files into Dreamweaver web pages

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 02, 2018 Dec 02, 2018

Yep, those are two wildly different things. Sounds like they may have tried to grab the image out of the code from a website instead of just sending the clean image files. They will most likely need to send you different files, but you could try to just edit the image naming. Try to rename it, removing the .css from it. It may work, and it won’t hurt anything since the files are useless at the moment anyway.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2018 Dec 02, 2018

If clicking the file opens it in Dreamweaver, it's a CSS file.   

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 31, 2018 Dec 31, 2018

Moving this query to Photoshop community.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 31, 2018 Dec 31, 2018

CSS is a text format for styling web pages. It is not an image.

You'll need to get the actual png image file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 31, 2018 Dec 31, 2018
LATEST

CSS (even if called xyz.png.css) is completly differen from an image (PNG, TIFF, JPEG, ...).

So the correct answer to the initial question is: No, there is no way to convert.

The reason is: A CSS file is no image file but a text file that is intended to be interpreted by browsers.

The really only possibility for getting a PNG file in your case is to ask again for a PNG file. If they do not have the picture as PNG file format, they may send a Photoshop file (.PSD), a TIFF file (.TIF or .TIFF), a JPEG file (.JPG) or even a GIF file or BMP file.

ABAMBO | Hard- and Software Engineer | Photographer
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines