4 Messages
•
164 Points
Thu, Sep 27, 2018 1:24 PM
1
Photoshop: Add an option for Generate Image to export images at document size instead of layer pixel size
Hi!
Generate Images in Photoshop is a feature that I have been utilizing to automate mass saving of 24b pngs quickly through linked layers, and i love it - however would like to request a feature that would allow Generate Images to save the file based on the document size as opposed to the pixels of the layers.
My content expectation is that i need to save a large quantity of images at a consistent size (document size) quickly. I have written a script that will assemble a psd of linked layers for our artists to output mass-quantities of images at multiple sizes for use in our game. The images that are output are used in a modular UI system that requires all images to be the same exact size, but the renders going into the psd do not have the same pixel dimensions.
Generate Images is nice because it runs in the background, without a need to run a different script. I could write another script that batches everything, but I would love to keep the process as few steps as possible.
I need to hack in a layer in the script called "pixels" that places a pixel in the top left, and bottom right at 10% flow for Generate Images to save a file out at the size of the DOCUMENT, instead of the pixels in the layers.
The issue i frequently run into is the rgb pixel stretching that happens in the RGB layer sometimes picks those white pixels to stretch instead of the main pixels of the image, causing halos on my content. I frequently have to disable Generate Images, turn off my pixels layer, and save manually - like some kind of caveman! :)
If there could be an argument that would allow for generate images to save the contents of the group to the document size instead of pixels of the layers, it would save me a hacky step, and root out errors down the pipe!
Generate Images in Photoshop is a feature that I have been utilizing to automate mass saving of 24b pngs quickly through linked layers, and i love it - however would like to request a feature that would allow Generate Images to save the file based on the document size as opposed to the pixels of the layers.
My content expectation is that i need to save a large quantity of images at a consistent size (document size) quickly. I have written a script that will assemble a psd of linked layers for our artists to output mass-quantities of images at multiple sizes for use in our game. The images that are output are used in a modular UI system that requires all images to be the same exact size, but the renders going into the psd do not have the same pixel dimensions.
Generate Images is nice because it runs in the background, without a need to run a different script. I could write another script that batches everything, but I would love to keep the process as few steps as possible.
I need to hack in a layer in the script called "pixels" that places a pixel in the top left, and bottom right at 10% flow for Generate Images to save a file out at the size of the DOCUMENT, instead of the pixels in the layers.
The issue i frequently run into is the rgb pixel stretching that happens in the RGB layer sometimes picks those white pixels to stretch instead of the main pixels of the image, causing halos on my content. I frequently have to disable Generate Images, turn off my pixels layer, and save manually - like some kind of caveman! :)
If there could be an argument that would allow for generate images to save the contents of the group to the document size instead of pixels of the layers, it would save me a hacky step, and root out errors down the pipe!
Ideas
•
Updated
2 years ago
7
4
1
Helpful Widget
How can we improve?
Tags
No tags available
Responses
max_johnson_7790531
Champion
•
626 Messages
•
14.6K Points
2 years ago
If you have a pixel or vector mask on any layer or group with the ".png" or ".jpg" flag on the end, it will crop the export to the mask, regardless of transparency on the layer or group.
If you make a script or action to select-all and make layer mask on your export layers, you get a full-canvas (or artboard) export.
2
SamGannaway
Employee
•
22 Messages
•
608 Points
2 years ago
Since you are using a script to create the psd of linked layers, perhaps you can add a step to create Artboards (or masks) for the output.
Feel free to post back here or contact me directly if you have any questions.
Sam
0
maury_mountain
4 Messages
•
164 Points
2 years ago
using an art board would also free up how im grabbing file names to name the groups in the script, and allow artists to name the PSD a bit cleaner for our content organization and allow the art board to use a simpler name to build the final asset names.
great stuff, thanks for the replies!
0
maury_mountain
4 Messages
•
164 Points
2 years ago
Ended up using the mask on group method and got it hooked into the script.
Art Board on its own option was not saving the file properly. The Artboard was set to the document size, generate image group within the art board, and the file saved based on the pixels of the layer instead of the artboard/document size.
Thanks again for the replies and options, this helps a ton!
2