• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Specify size when exporting using Photoshop generate images

New Here ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Hi, hope someone can help me with this... couldn'f find anything related to this.

I read in the guide that you can specify export size when generating images assets from layers in photoshop.

Suposedly if you us this name structure:

 

300mm x 20cm Rounded_rectangle_3.png

 

But when I try... it just doesn't work. It does export all the images in the correct format and so on... but the size part just doesn't work. It just crops the asset to the minimum size with no empty space. Is there something i'm missing? Do I need to activate something somwhere...?

 

For now what I'm doing is creating a mask with the correct size in each layer, but would be much quicker if I could just put the size in the name and get it done.

 

What can I do? Thank you very much in advance! 😄

 

I'm using photoshop 2022 in a mackbook pro with MacOs BigSur 11.2.2

TOPICS
macOS

Views

2.6K

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
community guidelines
Adobe
Community Expert ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Votes

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
community guidelines
New Here ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Hi Stephen, 

It doesn't help much, sorry... I already checked that... I tried to do the same on a computer with windows and it worked... it seems that it has something to do with macOS or at least with my laptop... 

 

Thank you anyway, I appreciate you took the time to answer! 😄

Votes

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
community guidelines
Community Expert ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Actually "centimeters" is a meaningless concept in Export and I can't imagine how that could work.

 

Export sizes the image in pixels only. Measurement in cm would be determined by the ppi (pixels per inch) number, but there is no ppi in Export. If there already is a ppi number in the file, it's stripped out.

 

It's important to understand that Export is for web/screen/mobile, and ppi (and hence physical size) simply doesn't apply on screen. Ppi is a print parameter. On screen, the "resolution" is the native screen resolution of whatever device you're viewing the file on.

Votes

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
community guidelines
New Here ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Hi! Yes, sorry for the missunderstanding, just copied the text from the guide Stephen linked. I tried using px or writing only the numbers and still didn't work.

Votes

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
community guidelines
Community Beginner ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

Hello! I can certainly help you with exporting images using Photoshop's Generate feature. It sounds like you want to specify the size of the exported images using a naming convention, but you're encountering some issues. Let's go through the process step by step:

 

Naming Convention: To specify the size when exporting images using the Generate feature in Photoshop, you need to include the desired size in the layer or group name. The format you mentioned (e.g., "300mm x 20cm Rounded_rectangle_3.png") is correct, but there's one important detail to keep in mind:

Use Pixel Dimensions: When specifying the size in the layer or group name, it should be in pixels, not physical measurements like millimeters or centimeters. Photoshop interprets the size as pixel dimensions, not real-world measurements.

Exporting Images with Correct Size: Here's the correct procedure to use the Generate feature and export images with the desired size:

a. In your Photoshop document, ensure that each layer or group you want to export as an image has a unique name that includes the desired pixel dimensions. For example, if you want a layer to be 300x200 pixels, you can name it "LayerName_300x200.png".

b. Make sure the layers you want to export are visible and not hidden.

c. Go to "File" > "Generate" > "Image Assets" to enable the Generate feature.

d. Photoshop will automatically start exporting the specified layers as individual image assets in the background.

e. The exported images will be saved in the same folder as your PSD file, with the specified pixel dimensions in the filename.

Crop vs. Resize: Keep in mind that Photoshop will not add empty space to the exported image to match the specified size. If your layer's content is smaller than the specified size, Photoshop will only export the content without any extra empty space. On the other hand, if the content is larger than the specified size, Photoshop will resize the content to fit within the specified dimensions.

By following these steps and using pixel dimensions in the layer or group names, you should be able to export images with the correct size using the Generate feature in Photoshop. I hope this helps! If you encounter any further issues, feel free to ask for additional assistance. Happy designing! 😊

Votes

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
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 21, 2023

Copy link to clipboard

Copied

LayerName_300x200.png just renames my file to "LayerName_300x200.png" and doesnt resize my image at all. this doesnt seem correct.

ive tried 300 x 200 name.jpg as well which is what the adobe tutorials say to do and that also does nothing.

 

still need help on this topic

Votes

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
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 21, 2023

Copy link to clipboard

Copied

300 x 300 Rounded_rectangle_3.jpg which is specifically from the tutorial just makes the exporter do nothing. no errors get spit out. it just doesnt perform any actions at all.

here is the tutorial link

https://helpx.adobe.com/ca/photoshop/using/generate-assets-layers.html

 

Votes

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
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 21, 2023

Copy link to clipboard

Copied

ok, well playing around with it further, if you DONT do what the tutorial says, and you punch in 300x300 Rounded_rectangle_3.jpg with no spacing between the "x". then it seems to work.

Votes

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
community guidelines
New Here ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

LATEST

It sounds like you're trying to use Photoshop's naming structure to specify export sizes for your image assets, but it's not working as expected. According to the guide, using a name like "300mm x 20cm Rounded_rectangle_3.png" should let you specify the export size directly in the layer name. However, you've found that this doesn't work and the assets are being cropped to their minimum size with no extra space.

 

First, ensure that you're following the correct syntax for naming. Photoshop typically uses pixels for dimensions in the naming convention, such as "300x200 Rounded_rectangle_3.png" (without units like mm or cm). Double-check the guide to confirm if it supports measurements in mm or cm. If it doesn’t, convert your desired dimensions to pixels.

 

Additionally, there might be a setting or preference in Photoshop that needs to be adjusted. Check the "Export As" settings under File > Export > Export As to see if there's an option that influences how layer sizes are handled during export.

 

If adjusting these settings doesn't help, your current workaround of creating a mask with the correct size in each layer is a good approach. While it's more time-consuming, it ensures that your assets export with the desired dimensions.

 

You might also consider updating Photoshop if you're not using the latest version, as there could be a bug or limitation in the version you're using (Photoshop 2022 on macOS Big Sur 11.2.2). Updates often include fixes and improvements that might resolve your issue.

 

Hopefully, this helps you resolve the issue. Good luck!

Votes

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
community guidelines