I create a graphic in CorelDraw X7. I export it to a PNG. In the export parameters I select a width of 324 pixels. The resulting image is 323 pixels. How can I tell it that I want exactly 384 pixels?
I was frustrated with similar problems many years ago (Corel Draw 4), but the problem was solved long ago. Specifically, I don't have this problem in version X3.
Thanks
David Dubois said:I create a graphic in CorelDraw X7. I export it to a PNG. In the export parameters I select a width of 324 pixels. The resulting image is 323 pixels. How can I tell it that I want exactly 384 pixels?
1) Select the graphic. Type Ctrl+E to get to Export menu
2) Give a name and location to your PNG bitmap (make sure that it will be saved as a PNG), then click "Export."
3) In the resulting dialog box, if you want a custom size to your exported bitmap, uncheck the "Maintain aspect ratio" and "Maintain size" boxes" (one of which happens to be checked in my attached screen capture. Sorry!)
4) Choose pixels as the units and the desired resolution for the exported bitmap *before* you select the specific pixel size you desire.
5) Click OK.
Hope this helps.
Try selecting the object and turn on Object > Object Hinting.
Yes, it has an outline. It consists of group of colored closed curves.
Sorry, I misunderstood your question. The curves have no outline defined. There is a fill but no "pen".
I couldn't show you the project that originally led to the problem, but I've been able to reproduce the problem with a simple graphic.
Just create a rectangle, 156.52 mm x 40.756 mm. Set a fill color, and turn off any outline.
Follow any of the instructions given above, and you'll get the same result. A request for 324 pixels results in a width of 323 pixels.
The screen display looks like Edit>Object Hinting was not turned on for the selected object as it has fuzzy edges. Object Hinting snaps the border of the object to the nearest pixel, which in the long run will help this issue. Also, if you turn your ruler units to pixels instead of MM, does it in still show 325px?
T.
Tried with the example suggested. ie Rectangle sized at 156.52mm wide x 40.756mm tall
Set Object Hinting on and ruler units to pixels.
Request for 324 still generates 323 pixels
Definitely a bug.
Going further, just converting the vector rectangle to bitmap changes size !!
156.52mm changes to 156.548mm
40.756mm changes to 40.809mm
The ideal way to create a design of exactly 324 pixels is to select the web preset when creating the document and set the page width to 324 pixels and whatever height you need.
You can then add a page frame (with or without fill, and with or without an inside outline) and lock it to ensure it does not move.
Exporting to PNG, the result remains the correct height and width. The same should continue to apply after you add objects to the image, as long as none of the objects extend outside the page frame.
As an example, I've attached a CDR file which is exactly 324x250 pixels and creates a PNG file of that exact size with an exact 4px border on all four edges.
Note: This currently works only for page sizes with an even number of pixels vertically and horizontally. There is a problem relating to odd pixels which is known and reported.
The thing is, I'm not creating a design of exactly 324 pixels. I'm just creating a design as I always have with no regard to scale or size. In the 20 years I've been using CorelDraw, I can count on one hand the number of times I've looked at the millimeters or dpi.
Now I need to create some PNG's and BMP's, one is 324 pixels wide, one is 825 pixels wide, and another is 1200 pixels wide. And tomorrow I might need one that 77 pixels wide, and another that is 177 pixels wide, and another that is 1777 pixels wide.
In X3 this was trivial. Export to PNG. Enter the width. Click OK. Done.
And now, for each one of these, I have to ... Examine the width and height of the original design. Get out a calculator and work out the required pixel height of the exported image. If the answer is odd, add one to it. Create a new document using the web preset with the appropriate width and calculated height. Add a page frame. Copy and paste the design from the original document to the new one. Screw around with it trying to fit into the new frame. Export the image, and cross your fingers. ... and if the width I need is an odd number, then just give up hope from the beginning.
I'm so sad right now. I'm this close to being in tears. Using CorelDraw has been _fun_. I've been using it for 20 years. I've been loyal to the brand. I've never even considered for a second changing to another company.
Now, all I can think of is, "Does this work in Illustrator?"
I do appreciate all your assistance and effort in helping me resolve this. Thanks to all.
Right on spot. We'll be needing fixes ...not workarounds. Have a problem with Channel Mixer which is a major part of my workflow, but as on date, no solution either. Other users are coming up with various issues that eventually get lost and forgotten in the forums. I guess there is a need for a tabulated bug list and follow up to address all the bugs that users are finding as they work, and suggest proper fixes or when a possible solution to the problem may be available. Could inspire more confidence in users and reduce the obvious frustration to a large extent.
It is not really true to say that "it always worked in previous versions".
It may have done in the limited cases that you tried. But there were always problems -- worse problems -- concerning objects being cut off (or appearing to be cut off) because the image was not antialiased at the edges. In fixing those problems, new problems have emerged -- or maybe, problems that always existed but were previously masked by the other problems have remained.
I am sure they will be fixed whenever it is possible. But it is surely counterproductive to get out a calculator and try to guess whether objects will be rounded up or down during conversion when there is a more logical and more accurate way to do it.
The easy answer is sometimes the best. For even pixels at least, the better answer is to drop the object on a page with a page frame that is already the correct size in pixels and scale it to fit within that page frame.