Skip to content

James Petrie

My feedback

1 result found

  1. Wrong exported image size (extra pixel added) if artboard coordinates are non-integer, not pixel-perfect

    188 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    This issue is probably happening because the artboard dimensions are not appropriate for raster export (i.e. are in decimals).
    If you make x and y values as the whole numbers in the transform panel (not in decimal), then the extra pixels will not be added to the exported image.

    That is the workaround, and it’s reported that it’s not always the case.

    At the same time — Ai knows the size of artboards to be exported and yet it does not deliver the set sizes, which is not fair. The team is going to rethink the algorithm.

    An error occurred while saving the comment
    James Petrie commented  · 

    I'm guessing that its because Illustrator isn't just for digital i.e. pixel based media, its also still used for print, and arbitrary metric or imperial measurements which don't follow exact pixels. The solution would be for Adobe to update templates for web and other digital formats where certain preferences like snap to pixel are enabled for elements and artboards alike.

    I'm now used to making sure the documents are digitally prepared before I export assets. But it still catches me out.

    An error occurred while saving the comment
    James Petrie commented  · 

    Well I agree, this is an annoying bug, and Adobe should look at this issue, I have no idea if the problem is fixable, you'd thought that artboards could only be moved and created already snapped to a pixel.

    The only workaround at present is that all artboards including those which overlap other artboards must have their x and y values set to whole pixels. Which is theoretically correct unless you have an artboard placed behind another object whose positions are not in whole pixels - then there is no workaround.
    If however all assets and artboards are in whole pixel dimensions, then placing their x and y values should align.

    Where individual objects are concerned, you can turn on snap to pixel, but the object must first be either drawn after switching the snap on, or manually move it align to whole pixels.

    An error occurred while saving the comment
    James Petrie commented  · 

    The issue effects both the artboard export itself - AND any asset selected for export either on or off the artboard. The xy coordinates values of the selected object must also be rounded to whole pixels in order to output at the correct pixel dimensions.

Feedback and Knowledge Base