Export an image - dimensions change...why?

Had this problem forever, only the project I am currently working on, its a critical issue...

I'm currently exporting some vector art as a png file to be printed later.  (I've also exported as jpg, same issue).
And, this applies to exporting the same art from Draw or Paint.

The entire image is clearly checked to be the required pixel dimensions, and yet the saved file is always 1-2px larger (both axis).
I can draw a simple outline box, any colour outline, any thickness outline, even invisible outline...
set the pixel dimensions...and export...and the saved image will be 1-2px larger.

I have to pre-think, and reduce the border dimensions by at least 1px (both directions) for the saved image to be the correct pixel dimensions I need.

Why is this?
I remember seeing this in previous verions of Corel, and as I said, I can export as png or jpg...I can also copy the art into Paint, and then export as.
The end result is the same.

Parents Reply
  • Snap to Pixel is useless, doesn't work.
    although one corner might seem to snap to a single pixel, the other sides of the object didn't always line up

    It should only snap to pixel edges and centers as far as I know.
    If one side is aligned, the opposite side should be too, IF the object's dimensions are full size pixels.

    One problem that I found now when checking Draw 2018, is that it doesn't seem to show pixel decimals in Property Bar (while Draw 2020 does).
    If that is the case, you must manually type in ".0" in the size boxes to make sure the size is correct.

    I set the object to 1px line thickness (.24pt) just to be sure.

    If you add a 1 pt (center positioned) outline, you also add half a pixel on each side, which makes the object move away from the grid and it adds two pixels to the exported image.
    If you move the object half a pixel right and down, the object's outline will be aligned with the grid but you will still get one extra pixel when exporting.

    So, if you use centered or outside outlines, you must calculate for the extra width and height.
    That's how it is unfortunately.

Children