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

Quando exporto png no Ilustrator, aumenta em 1px e as vezes ate mais.

New Here ,
Jan 05, 2024 Jan 05, 2024

Copy link to clipboard

Copied

Ola pessoal, pois toda vez que exporto usando "exportar seleção", ele exporta com 1px a mais ou em algumas vezes com fundo transparente maior que a imagem, nesse segundo caso ate 20px. Mesmo fazendo uma mascara em volta da imagem.

 

Alguem sabe o que acontece?

 

Obrigado 

TOPICS
Draw and design , Print and publish

Views

60

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
Community Expert ,
Jan 05, 2024 Jan 05, 2024

Copy link to clipboard

Copied

Smart Serenity,

 

I believe the 1 px issue may be a matter of having the corners of the artwork/Artboard at whole/integer pixel values, or something with a stroke. You can find a more elaborate mentioning of those below shown in bold, along with other things that might prove useful now or later.

 

 

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 image 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 Use 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; to get the colours right, you may wish/need to finalize by opening the PNG in PS (Photoshop) and attach the (missing) colour profile (such as sRGB) there.


It is also important to have the artwork and also the Artboard(s) 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).


If you have issues with the Artboard(s), make sure the rulers are Global Rulers (RightClick), if not change from Artboard to Global Rulers; and to align your artboards, click the Rearrange All Artboards button in the Artboards panel. First posted by Ton here,
https://community.adobe.com/t5/illustrator-discussions/why-is-illustrator-not-exporting-artboard-siz...


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


Therefore, a safe 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.

 

Or you can switch to SVG, if applicable.

 

https://helpx.adobe.com/search-results.html?q=svg&scope=%5B%22helpx%22%5D&subscope=%5B%5D&limit=10&s...

 

 

 

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
New Here ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

Ola muito obrigado, ja tinha feito esses testes e mesmo assim nao adiantiou, qando exporto em prochetas ele exporta correto o tamanho, somente quando exporto a seleção, tentei pela resolução, por tamanho por escala e nao adiantou, sempre exporta maior, exemplo: tenho um objeto com 76X226px, quando exporto fazendo a seleção desse objeto ele exporta com 101x252px. e quando eu crio uma prancheta no tamanho de 76x226px ele exporta corretamente

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 ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

Please show that object. 

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 ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

LATEST

Smart Serenity,

 

Your 76x 226 to 101 x 252 is doubly strange because it leads to completely different proportions.

 

I should also like to see a screenshot, preferably shown directly in the post, so please use the Insert Images button (moon over mountains) at the top of the Reply box rather than attaching it which only gives a link to a preview.

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