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

Need some tips on how to create very high quality of transparent PNGs and BMPs

Community Beginner ,
Mar 18, 2022 Mar 18, 2022

Copy link to clipboard

Copied

I know how to create these two image formats with transparent background.
However I have a big issue: the images are not looking very sharp even though I have started with a vector graphic! So I need very high quality images to deliver.

 

To give some context, I am adding new icons to a project that works only with transparent BMP (24px and 32px). I have checked the old BMPs of 24px size and you can see clearly the graphic color, the transparent background and so on.

For my new icons, I start with creating the icons in Illustrator, then I copy the group and save as SVG, then I create a PNGs using these vector shapes, then I Save As this as a BMP with an aplha channel which is applicable only for 32 bpp. Final result for PNG and BMP images is pixels with diferent colors are added to my original concept, especially for everything that has border. 

Can anyone share a tip on how to improve PNG creation from vector based graphics and then BMP creation from a transparent PNG? It is a very important task and I would REALY APPRECIATE any help!

TOPICS
Draw and design , Feature request , Import and export

Views

3.3K

Translate

Translate

Report

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
LEGEND ,
Mar 19, 2022 Mar 19, 2022

Copy link to clipboard

Copied

I'm not clear what you are asking. How did this ever even work without optimizing the images pixel by pixel in PS or an icon editor? That aside it could be any number of things from sub-pixel positioning introducing extra resampling and interpolation to color management problems causing similar artifacts. A better explanation and screenshots certainly would help.

 

Mylenium

Votes

Translate

Translate

Report

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 ,
Mar 19, 2022 Mar 19, 2022

Copy link to clipboard

Copied

Barry,

 

"For my new icons, I start with creating the icons in Illustrator, then I copy the group and save as SVG,"

 

Why include SVG instead of going straight to BMP/PNG?

 

 

In general, to get clear raster artwork, the following may sound unforgivably outdated and boring, sorry.


If you wish to have PNGs (PNG24 (also (little) known as PNG32, it holds 24 bit colour and 8 bit Alpha channel (transparency)), of course) look crisp and clean, at least when it is (also) to be used at moderate screen resolutions, it is important to have the images in the exact desired final pixel x pixel size, or at sizes that are powers of 2 times as large (2x, 4x, 8x, and so on, the larger values can improve the appearance on high resolution screens and still ensure best possible appearance at low resolution screens); forget about resolution which may actually lead to wrong sizes and hence blurriness, or work at 72PPI or powers of 2 times as large (144PPI, 266PPI, 576PPI, and so on).


It is easiest and safest to work at the desired size when creating the artwork.


It is important to remember that a raster image represents the whole appearance, including strokes, so to make sure you get it right you can click Show Preview Bounds in the General Preferences (and untick it afterwards).


A very common unsuitable way is to Export to PNG (remember to use PNG24 and use Transparency for artwork to be in front of different backgrounds) with a medium or high resolution, such as 300PPI.


And a common misunderstanding: (almost) 11 out of 10 times, a statement like "I created the document at 300 PPI" means that the value is chosen in Effect>Document Raster Effects Settings; however that only means that the (current) resolution of any raster effects applied to the vector artwork, such as (any kind of) Blur, is set to that value (and only unless/until the value is changed to something else); when zooming in, this resolution can be seen in contrast to and on the background of the vector artwork. So this setting has nothing whatsoever to do with the actual resolution of a raster image created from the (vector) artwork (but it ought to (at least) match it).


For clean and crisp artwork avoid JPEG.


It is also important to have the artwork and also the Artboard placed fully within integer/whole pixel X and Y values in the Workspace, which means that the X and Y values at the corners must be integer; this can be ensured by using one of the corner Reference Points in the Transform palette, and then checking that all the values X, Y, W, and H, are integer (the centre Reference Point can only be used if both W and H are even numbers).


Otherwise the resulting image will become a bit wider/taller and the extension(s) will be empty and therefore be (partially) transparent/white.


Therefore, the safest way is to create the artwork at the final pixel x pixel size and use a corresponding Artboard, then use the Legacity Save for Web (where you can look in the Image Size window for size confirmation and possibly multiply by 2, 4, 8, whatever), or use Export at 72PPI (or 144/288/576/whatever PPI), or use Export for Screens (in either way). In either case, use the relevant optimization (available with both ways); it is also convenient to have 72PPI (or 144/288/576/whatever PPI) in the Effect>Document Raster Effect Settings.


If you have pure vector artwork, you can relax a bit and have the artwork/Artboard at any size (the Artboard must have the same proportions as the final image), then use the Legacity Save for Web and set either Width or Height in the Image Size and Apply (make sure the other value is also correct).


The Legacy Save for Web may be an old carthorse, but it knows its way home, even if the driver is drunk and sleeping it off in the hay in the back.

 

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

To the questions "Why include SVG instead of going straight to BMP/PNG?"... A BMP with alpha channel can be created, as far as I know, only from a transparent PNG and all this save as BMP can happen only by using Photoshop. So I can't export as BMP from Illustrator if I want to have that chanel with transparency.

Thanks for the tips! Appreciate all the info and I will try to follow it.

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

You are welcome, Barry.

 

In your OP (original post) you mentioned SVG (and not Photoshop), hence my question.

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Here are screenshots of the vector icon that doesn't get a sharp rasterization in PhotoshopIllustrator - vector icon.pngPhotoshop - PNG rasterized icon.png

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Barry,

 

For straight horizontal/vertical parts such as the outer bounds of the plus and and the F and F, and parts of the P, you can adapt position/size to have them be contained within whole pixels.

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

I did this... the cross is 11x11px, and all letters are H10px (x8, or 7 for W) and still that extra Whole px for straight lines.pngshade shows up

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Barry,

 

How about Resolution 72 instead of 96?

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Another try.png

No luck! What am I missing here?

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Barry,

 

After a few closer looks at the vector icon and the rasterizations, along with the sizes you mention, I have noticed the following:

 

The cross is 11 x 11 px, but judging by the vector icon the proportions correspond to 5/15 x 5/15 units (width of arms 5 px) for the darker green and 3/13 x 3/13 units for the paler green, which are bound to fall between the whole pixel values and give sub-pixel positioning introducing extra resampling and interpolation as Mylenium said in the first post.

 

You might be happier with a 12 x 12 px cross with proportions of 4/12 x 4/12 px for the darker green and 2/10 x 2/10 px for the paler green.

 

Similarly for the letters.

 

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

LATEST

sorry, it seems that two threads were merged. The above one is the most updated with visuals of my issues.

Votes

Translate

Translate

Report

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 Beginner ,
Mar 18, 2022 Mar 18, 2022

Copy link to clipboard

Copied

I know how to create these two image formats with transparent background.
However I have a big issue: the images are not looking very sharp even though I have started with a vector graphic! So I need very high quality images to deliver.

 

To give some context, I am adding new icons to a project that works only with transparent BMP (24px and 32px). I have checked the old BMPs of 24px size and you can see clearly the graphic color, the transparent background and so on.

For my new icons, I start with creating the icons in Illustrator, then I copy the group and save as SVG, then I create a PNGs using these vector shapes, then I Save As this as a BMP with an aplha channel which is applicable only for 32 bpp. Final result for PNG and BMP images is pixels with diferent colors are added to my original concept, especially for everything that has border. 

Can anyone share a tip on how to improve PNG creation from vector based graphics and then BMP creation from a transparent PNG? It is a very important task and I would REALY APPRECIATE any help!

Votes

Translate

Translate

Report

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 ,
Mar 19, 2022 Mar 19, 2022

Copy link to clipboard

Copied

Tip: do not scale the PNG or BMP when you view it. Do not zoom out or zoom in. Make it exactly the pixel size of the final view. 

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

It is not about scalling up or Zoom in it. 

Votes

Translate

Translate

Report

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 ,
Mar 19, 2022 Mar 19, 2022

Copy link to clipboard

Copied

Any reason why you don't continue in your other thread?

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

I was trying to get as many opinions as possible.

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

So how many threads do you want to create when you don't get answer you like?

 

Please continue there: https://community.adobe.com/t5/illustrator-discussions/need-some-tips-on-how-to-create-very-high-qua...

Votes

Translate

Translate

Report

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 Beginner ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

I have been replying to the other thread as well. Also it is not about me not liking an answer... any answer is appreciated.

Votes

Translate

Translate

Report

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 ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

[Moderator merged two topics into one for continuity.]

 

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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