Jump to content
firewater

Trapped not able to export my pixel art

Recommended Posts

Very frustrated with this. I've made a lot of pixel art on Affinity Designer over time, and now that I'm putting it to use, I'm having trouble getting it out of the Affinity format. Really simple: all I want to do is save my work as a .png. Affinity lets me do this, but resampling takes place, and all options available destroy the work. Most do it by antialiasing it, which is fine, because they're not meant for pixel art - the problem is that it also happens with 'nearest neighbor' (the one that should work), as it applies some sort of non-pixel-perfect method that ruins all proportions.

I've attached an example an example of what I mean. The red pixel on the right figure should be a square, but on the exported result, it is a rectangle.

untitled_pixel.afdesign

untitled_pixel.png

Share this post


Link to post
Share on other sites
  1. Click on Export Persona
  2. 5ae80b3df2265_ScreenShot2018-05-01at07_37_01.png.2693415d44cc466c006fe397db97e2a7.png
  3. Make sure you are on the Slices Tab
  4. 5ae80a0f6b482_ScreenShot2018-05-01at07_31_46.png.fc13ad0574660ab37ab0b60fd4996df6.png
  5. Click on the plus but do not choose a preset
  6. 5ae80a7e77060_ScreenShot2018-05-01at07_33_45.png.9c9abf534996781a575ec3bdfefb2744.png
  7. Click on Export Slices.
  8. 5ae80aae6c756_ScreenShot2018-05-01at07_34_59.png.3a0efe2d0ea94c149982b17e492c1180.png
  9. You should end up with a png like this
  10. untitled_pixel.png.a13d3e771b112862aba9743c57cd09a3.png

iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites

Did you rescale the artwork? If you look at  the transform panel you can see that the they are no longer integer sizes.


intel core i5,  16GB 128Gb ssd win10 Pro Huion new 1060plus.

philips 272p 2560x1440px on intel HD2500 onboard graphics

Razer Tartarus Chroma

Share this post


Link to post
Share on other sites

Just showing measurements between the exported png and the original.

5ae80ef487822_Pixeldimensions.thumb.gif.b153106aadfaa9cd65393bfcc071f8b6.gif


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites
26 minutes ago, dutchshader said:

Did you rescale the artwork? If you look at  the transform panel you can see that the they are no longer integer sizes.

To tag onto @dutchshader inquiry, you can scale the little people to integer sizes Large one will scale up to 85px x 155px and the little one will scale up to 32px x 62px these will export 1:1 so the square remains a square.


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites
31 minutes ago, firstdefence said:

To tag onto @dutchshader inquiry, you can scale the little people to integer sizes Large one will scale up to 85px x 155px and the little one will scale up to 32px x 62px these will export 1:1 so the square remains a square.

 

I think that, as @dutchshader has hinted, the problem has been introduced by the objects being scaled down in the first place!


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iOS 12.4.1 (iPad Air 2)

Share this post


Link to post
Share on other sites
9 hours ago, firstdefence said:

Just showing measurements between the exported png and the original.

5ae80ef487822_Pixeldimensions.thumb.gif.b153106aadfaa9cd65393bfcc071f8b6.gif

Very nice way of showing it!

9 hours ago, dutchshader said:

Did you rescale the artwork? If you look at  the transform panel you can see that the they are no longer integer sizes.

Correct! I believe you're in the right path to answering the question. A lot of my objects are indeed not integer sizes. I've also discovered that the keyboard shortcuts to enlarge the pixel brush does not go 1px > 2px but 1px > 1.1px > 1.3px and so on. My question then is - how can I scale all objects to an integer number, and how can I make the brush go in integer numbers too?

Probably related too: it seems impossible to have some of my objects aligned with the grid. This happens with objects that have non-integer values (a new pixel layer does not have this problem, up until it's scaled).

blue.png

Share this post


Link to post
Share on other sites
52 minutes ago, firewater said:

My question then is - how can I scale all objects to an integer number, and how can I make the brush go in integer numbers too?

 

You can use expressions such as round(h*133%) in the Transform panel to ensure integer dimensions, but other than typing in the desired value for the brush size I don't know of a way to change it by an integer amount.


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iOS 12.4.1 (iPad Air 2)

Share this post


Link to post
Share on other sites
1 hour ago, Alfred said:

 

You can use expressions such as round(h*133%) in the Transform panel to ensure integer dimensions, but other than typing in the desired value for the brush size I don't know of a way to change it by an integer amount.

All I did was Click in the width box and press the up arrow on my keyboard until both width and height were integer (whole) numbers.


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites
1 minute ago, firstdefence said:

All I did was Click in the width box and press the up arrow on my keyboard until both width and height were integer (whole) numbers.

 

Thanks. What I meant was that I don’t know of a way to force the keyboard shortcuts to work in whole numbers.


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iOS 12.4.1 (iPad Air 2)

Share this post


Link to post
Share on other sites
4 hours ago, Alfred said:

 

You can use expressions such as round(h*133%) in the Transform panel to ensure integer dimensions, but other than typing in the desired value for the brush size I don't know of a way to change it by an integer amount.

 

2 hours ago, firstdefence said:

All I did was Click in the width box and press the up arrow on my keyboard until both width and height were integer (whole) numbers.

Thanks but I still can't export. I locked the ratio and put "round(h*133%)" on Height, they change size and all but the same thing happens when exporting.

Share this post


Link to post
Share on other sites

@firewater Hi, Does this pixel art have to a particular size or are you just experimenting to find the best settings for pixel art export?

 

Try exporting with this file: Pixelart integer sized.afdesign

 

pixelart export.mp4


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites

I'm just trying to find the best settings for pixel art period, but at the minimum the ones for getting the objects out Affinity, as sadly it seems I'll have to drop it for this type of use. And I don't even mean literally exporting, I mean ANY way of getting these layers out of Affinity without a loss of quality - because, for example, I've tried copying an object and dropping it into another program (MS Paint, Photoshop), but when I paste it it's always antialised/blurred.

I don't think the way I work is any different from anyone making pixelart. It's two really basic things that seem to give problems: increasing/decreasing the brush size, and scaling the object (don't think I'd have to explain why, anyone who draws surely is familiar with getting most of their edits out of these). Your file works fine for exporting and everything, but anything I do to it that includes scaling (something, as I said, anyone would do constantly), messes it up: now both figures on the right have non-square pixels when exporting.

Pixelart integer sized_2.afdesign

Pixelart integer sized.png

Share this post


Link to post
Share on other sites
1 hour ago, firewater said:

Thanks but I still can't export. I locked the ratio and put "round(h*133%)" on Height, they change size and all but the same thing happens when exporting.

 

If you do that, the new height will be rounded to the nearest integer but the width will be kept exactly in proportion (which may not be an integer value). Instead of locking the ratio and changing one value, you need to change each value independently; e.g. round(w*133%) in the W box and round(h*133%) in the H box.


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iOS 12.4.1 (iPad Air 2)

Share this post


Link to post
Share on other sites

You just need to type in the desired value, or a formula for it. In the file attached to your previous post (which I didn't see when I posted shortly after you did) the smaller variants have non-integer widths, so you need to type 46 or and 30 into the Width boxes for the medium-sized and smallest ones respectively (or paste the formula round(w) into each one).

 

I haven't checked this but I think you may also need to force each shape to sit on a pixel boundary. You can either do this via the Transform panel or (probably easier) by using the 'Pixel work' snapping preset and moving each shape a little after ensuring that it has integer dimensions.

 


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iOS 12.4.1 (iPad Air 2)

Share this post


Link to post
Share on other sites

I think a reworking of the icon would probably be the best bet. The grid is a 1px grid with Snapping on and the only option selected is force pixel alignment

5aea0a9323a82_ScreenShot2018-05-02at19_57_31.png.d56b70b6394778dc8c09bd2a48554446.png

 

untitled_pixel reworked.afdesign

 


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
Share on other sites

Right so to be clear I tried everything mentioned and I'm still stuck at not being able to export it. My best bet is, as mentioned, to rework them - which in my case, optimal scenario is to export as .png and trace over the works with a 1px brush, without scaling anything. This sort of works but only because I didn't make that many sprites and the rework could be done in a day. But still it's terribly inconvenient and makes me move to another tool for pixel art work. I've tried other software these last days and they're all years behind Affinity in term of workflow and UI for me, so I'll still have this as my main visual program for anything else. It's just a shame that it's SO close to being the most competent tool for pixel art I've used. I'll make a thread on the feedback section. Thanks for the help again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.