Highlighted

Export as to export png moves the image on the canvas

Community Beginner ,
Nov 09, 2016

Copy link to clipboard

Copied

I'm not sure if this is normal behavior but I have a png with transparency. It's meant to be use as a texture for a 3D asset so both the transparency and it's exact placement on the canvas is very important. I've been using the file>export>export as to generate my pngs but am finding that the resulting png changes the location of the pixel information on the canvas. Everything shifts towards to middle. How/where can I manage this 'feature'?

Adobe Community Professional
Correct answer by davescm | Adobe Community Professional

If you are in 8 bit RGB you should have an option to Save As png.

Still having trouble replicating this. Please show me where I am missing a step.
1. Create a document (I have used the same size as yours 940 x 6708 pixels with transparent background)

2. Add a layer with some non transparent pixels off centre

3. File - Export Exports as png

4. Save the file - reopen and compare to original

Ignore the border that was just my screen snip - if I drag over the original layer it is identically positioned.

I am obviously missing something in trying to replicate - can you see what I have missed ?

Dave

Views

14.7K

Likes

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

Export as to export png moves the image on the canvas

Community Beginner ,
Nov 09, 2016

Copy link to clipboard

Copied

I'm not sure if this is normal behavior but I have a png with transparency. It's meant to be use as a texture for a 3D asset so both the transparency and it's exact placement on the canvas is very important. I've been using the file>export>export as to generate my pngs but am finding that the resulting png changes the location of the pixel information on the canvas. Everything shifts towards to middle. How/where can I manage this 'feature'?

Adobe Community Professional
Correct answer by davescm | Adobe Community Professional

If you are in 8 bit RGB you should have an option to Save As png.

Still having trouble replicating this. Please show me where I am missing a step.
1. Create a document (I have used the same size as yours 940 x 6708 pixels with transparent background)

2. Add a layer with some non transparent pixels off centre

3. File - Export Exports as png

4. Save the file - reopen and compare to original

Ignore the border that was just my screen snip - if I drag over the original layer it is identically positioned.

I am obviously missing something in trying to replicate - can you see what I have missed ?

Dave

Views

14.7K

Likes

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
Nov 09, 2016 0
LEGEND ,
Nov 09, 2016

Copy link to clipboard

Copied

This is a known issue. I have not found a way yet to show Photoshop how much of the transparency should be included when saving as a png.

In theory you should be able to create a path with no stroke or fill to outline the border. Currently I don't know if this is a short coming of the png format or a Photoshop issue.

Likes

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
Reply
Loading...
Nov 09, 2016 0
Adobe Community Professional ,
Nov 10, 2016

Copy link to clipboard

Copied

Silkrooster wrote:

This is a known issue. I have not found a way yet to show Photoshop how much of the transparency should be included when saving as a png.

Hi Silkrooster

Is this image or system dependant? I've been trying to reproduce here and I am getting an exact copy every time with no movement (CC2017 and CC2015.5 on Windows 10)

Dave

Likes

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
Reply
Loading...
Nov 10, 2016 0
Community Beginner ,
Nov 10, 2016

Copy link to clipboard

Copied

Hi Silkrooster

Is this image or system dependant? I've been trying to reproduce here and I am getting an exact copy every time with no movement (CC2017 and CC2015.5 on Windows 10)

Dave

davescm, I'm curious as to how you're not getting this issue.

It seems as though the primary 'Export As...' feature is that it centers the image within the canvas bounds. This would be fine if there was a toggle but there isn't. This is worrisome especially if they phase out the now 'legacy' Save for web... These export windows are useful for making adjustments to resolution with preview, managing/previewing export colour profiles, etc. Much of my workflow involves making UV maps for 3D assets. I need pixels to remain where I placed them. Photoshop is MY employee and should do as I say. LOL.

Here is the text explaining the export as centering 'feature':

The Export As dialog updates the preview to center the image within those bounds.

This option is useful in several scenarios, such as the following:

  • You're exporting icons that have various sizes, but that need to be centered within 50x50 px boxes.
  • You're exporting banner images that are smaller or larger than the required dimensions.

If the image is larger than the canvas size, it is clipped to the width and height values set for the canvas. You can click Reset to revert the values to those set in Image Size.

  • Whether you want to convert the exported asset to the sRGB color space. This option is selected by default.
  • Whether you want to embed the color profile in the exported asset.

Images below show an example of this happening. The image on my canvas sits slightly right of center and becomes centered when I move into export as. There are no options to be seen here or in the preferences that would allow me to turn off this centering feature.

canvas.PNG

moved pixels.PNG

Again, I'm really fine with this being a thing and can think of many instances where it would be useful. I would just like to have the option to easily turn it on and off.

Likes

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
Reply
Loading...
Nov 10, 2016 0
LEGEND ,
Nov 10, 2016

Copy link to clipboard

Copied

Is it also the same when you "Save File As  ..." by going to File menu item?  In file Save as you can then choose png file format to test this out.

Likes

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
Reply
Loading...
Nov 10, 2016 0
Community Beginner ,
Nov 10, 2016

Copy link to clipboard

Copied

mytaxsite.co.uk wrote:

Is it also the same when you "Save File As ..." by going to File menu item? In file Save as you can then choose png file format to test this out.

I don't have the option to save a .png from 'Save as...' I am on a PC, is the same true for Mac?

Likes

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
Reply
Loading...
Nov 10, 2016 0
Adobe Community Professional ,
Nov 10, 2016

Copy link to clipboard

Copied

If you are in 8 bit RGB you should have an option to Save As png.

Still having trouble replicating this. Please show me where I am missing a step.
1. Create a document (I have used the same size as yours 940 x 6708 pixels with transparent background)

2. Add a layer with some non transparent pixels off centre

3. File - Export Exports as png

4. Save the file - reopen and compare to original

Ignore the border that was just my screen snip - if I drag over the original layer it is identically positioned.

I am obviously missing something in trying to replicate - can you see what I have missed ?

Dave

Likes

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
Reply
Loading...
Nov 10, 2016 1
Community Beginner ,
Nov 10, 2016

Copy link to clipboard

Copied

davescm

Ah yes, you can save a png in 8-bit and 16-bit but not 32-bit in RGB, I remember that now. Are you using 2017? I'm still on 2016

I feel silly for not doing a test replication before. Now I find I am unable to repeat my own original project. After restarting photoshop, I brought some of the same assets into a new file. I created a image preset from to original so that my image set up would be identical. No issues, however, the issue persists on the original file. There must be a setting somewhere that I am currently unaware of.

What's curious now is that neither of us can replicate these results yet the help documents say that this is a feature. So the unsolved variable persists but now I'm starting to think this is bug related and not me. The only other possibility is that my client has embedded some setting into this file that I can't see at first glance.

Likes

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
Reply
Loading...
Nov 10, 2016 0
Adobe Community Professional ,
Nov 10, 2016

Copy link to clipboard

Copied

If you do get it to re-occur on a non client file, PM me a link and I will try it here - between us we might be able to identify what is triggering it.

I was testing on CC2017 when I did the screenshots but I also tried 2015.5.1 earlier and could not replicate it on there either.

Dave

Likes

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
Reply
Loading...
Nov 10, 2016 0
LEGEND ,
Nov 10, 2016

Copy link to clipboard

Copied

davescm wrote:

Silkrooster wrote:

This is a known issue. I have not found a way yet to show Photoshop how much of the transparency should be included when saving as a png.

Hi Silkrooster

Is this image or system dependant? I've been trying to reproduce here and I am getting an exact copy every time with no movement (CC2017 and CC2015.5 on Windows 10)

Dave

It's been awhile since I have tried it, but it use to trim the transparent area around the image. This would create an off center image, if the intention is to position the image in Photoshop instead of the other program. This can be useful if someone was not familiar with using the secondary program or it lacked features to manipulate its position.

Perhaps I misinterpreted the original poster, but that's what I assumed he meant.

Likes

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
Reply
Loading...
Nov 10, 2016 0
Community Beginner ,
May 07, 2017

Copy link to clipboard

Copied

Hi,

I've just come across this issue and can replicate it!

It works fine as stated when you choose File > Export As, but if I want to export multiple individual layers with transparent areas as separate frames = that's when problems occur. If I follow the help instructions - select all the layers in the layers panel then right-click on them and choose 'export as' then when I change the canvas size to the original file size it centers each layer in the 'export as' dialogue box.

I'm trying to export a frame by frame animation into a PNG image sequence to import into After Effects, I can also do this via File > Export > Layers to files but then the names are wrong and I have to re-name everything before I can import into After Effects as an image sequence.

Pretty sure my options are limited but thought I'd add this in..

Likes

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
Reply
Loading...
May 07, 2017 1
Community Beginner ,
Aug 29, 2017

Copy link to clipboard

Copied

This is the same problem I am having!  When I try to export many layers at the same time (Right click selected layers and click "Export as..."  PNG), all with a transparent background of at least an 1" border.  They are all exporting with a different border, which is not what I want.  The custom borders are showing up in the preview, I just didn't catch it until after everything exported. 

Please see pictures Below:

Screen Shot 2017-08-29 at 5.18.14 PM.png

Screen Shot 2017-08-29 at 5.18.20 PM.png

Screen Shot 2017-08-29 at 5.18.30 PM.png

Likes

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
Reply
Loading...
Aug 29, 2017 2
New Here ,
Feb 24, 2018

Copy link to clipboard

Copied

I found the same issue in animation frames. The character should stay still and just the arms move but as the arms moved wider the centre point changed.

I found the "Export > Save for web (legacy)..." didn't have this issue so even though it is slower to export the layers I have opted for this option.

Hope this helps some

Likes

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
Reply
Loading...
Feb 24, 2018 0
Explorer ,
Mar 14, 2018

Copy link to clipboard

Copied

Seeing this problem as well. Photoshop is also including extra transparent pixels when choosing several groups and selecting "Export As." I'm having go manually go in and crop thumbnails after exporting. Super frustrating.

Also, strangely, (in trying to fix this) I command+clicked a layer to try and crop it, but the crop tool wouldn't snap to the selection. It kept force selecting emptiness far away from my marching ants. Used the info tool to examine every single pixel, thinking maybe there was a hidden transparent pixel somewhere, but nada.

Help!

Likes

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
Reply
Loading...
Mar 14, 2018 0
New Here ,
Nov 12, 2019

Copy link to clipboard

Copied

I know this is an old thread but I had this problem tonight and I was able to figure it out. I had several pixels out of the canvas area which was throwing off my transparent PNG during the export. My canvas size was 1920px square and when I enlarged it to 3000px square, the stray pixes were revealed. I simply deleted the extra pixels and went back down to my original 1920px square format afterwards. Don't forget to resize the canvas using the center of the canvas as the anchor point!

 

Hope this helps.

Likes

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
Reply
Loading...
Nov 12, 2019 0
New Here ,
Mar 12, 2020

Copy link to clipboard

Copied

Sad to see that 4 years later this bug still persists in Adobe Photoshop.

I have arrived at the same conclusion that the art in exported images get shifted when you have either a mask or undeleted pixels outside of the canvas. I'm also using the Timeline with multiple frames (not sure if this has any effect).

The workaround is to use the legacy exporter as someone mentioned or use alternative software.

Likes

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
Reply
Loading...
Mar 12, 2020 0
New Here ,
Apr 21, 2020

Copy link to clipboard

Copied

Hello Everyone, 

I had this same issue, I couldnt find an answer and so then I played around with changing the canvas size and then back to the size I needed it in and it seemed to have worked. Now my exported image is appearing the same, its no longer repositioned. I hope this helps everyone as it did for me! 

 

 

Likes

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
Reply
Loading...
Apr 21, 2020 0
New Here ,
Oct 10, 2020

Copy link to clipboard

Copied

I know this thread is very old, but advice here helped so I thought I'd share the solution in my case.

 

I had a similar issue where Export As... was repositioning content with a transparent background on an artboard. In my case there was using a mask that happened to have content outside of the artboard that was causing the issue. By cropping the mask to the artboard the issue was fixed.

Likes

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
Reply
Loading...
Oct 10, 2020 0