photoshop generator save to a different location outside the psd file location

  • 1
  • Question
  • Updated 11 months ago
can photoshop generator save to a different location outside the psd file location. I have been search for answer for 2 years
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes

Posted 1 year ago

  • 1
Photo of Hannah Nicollet

Hannah Nicollet, Official Rep

  • 636 Posts
  • 257 Reply Likes
Hi Gary! I'm checking on that for you. I'll let you know when I get an answer :)
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes
to the second option. how do I name the psd layers?
Photo of Max Johnson

Max Johnson, Champion

  • 451 Posts
  • 208 Reply Likes
The layer names have nothing to do with changing the root output folder in option 2. You name them the same way you would otherwise, it just saves the "psdname-assets" folder in a different place now.
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes
I try and it doesn't work. 
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes
does adobe still trying to improve generator?
Photo of Hannah Nicollet

Hannah Nicollet, Official Rep

  • 636 Posts
  • 257 Reply Likes

Hi Gary,

Here is the usual naming convention for the generator (keep in mind that step 4 will be different if you use generator.json and change the directory where your assets are created):

Getting started

  1. Open a PSD, taking note of it's location
  2. Select the menu item File -> Generate -> Image Assets
  3. Tag layers or layer groups with names that end in any of the standard file extensions ( .png, .jpg, .gif )
  4. Use a file explorer to navigate to the folder where your PSD lives, then open the folder {PSD name}-assets

How to tagBASIC

.png - Defaults to png 32. Supported flavors include: .png8, .png24, .png32

.jpg - Default quality is 9 (or 90%). Options include: .jpg(1-10), .jpg(1-100%)

.gif - Basic alpha transparency, no options

Basic Tagging Examples

  • rad.png24
  • middling.jpg5
  • oldschool.gif
  • subfolder/bbq.jpg

This is sourced from the documentation found here:

https://github.com/adobe-photoshop/generator-assets/wiki/Generate-Web-Assets-Functional-Spec


Thanks,
Hannah

Photo of Max Johnson

Max Johnson, Champion

  • 451 Posts
  • 208 Reply Likes
The short answer is yes.
There is a setting you can change for the generator if you create a generator.js file in your user directory that *should* override the output directory.
This is a global change, however, and I have never actually tried it, since I don't want every one of my PSDs outputting to a single hard-coded directory.

"base-directory 
When set, place all documentname-assets folders inside the specified base-directory path. Note that base-directory should be an absolute path (e.g. /Users/jbrandt/Desktop on Mac). If the path is relative, it will be resolved relative to the system root, which is likely not what the user wants. (And, will likely lead to permission errors.) (default: undefined)"

https://github.com/adobe-photoshop/generator-assets/wiki/Configuration-Options
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes
ok these all will work on the desktop. but all my psd file is in the server. so will all these work??
Photo of Max Johnson

Max Johnson, Champion

  • 450 Posts
  • 208 Reply Likes
This has examples of how to name photoshop layers for the generator. It has examples for making sub-folders
https://cantina.co/workflow-creating-assets-photoshop-generator/
Photo of Gary Tang

Gary Tang

  • 17 Posts
  • 2 Reply Likes
yes I've seen this before. but I need the generator to generate asset outside of the root folder.
Photo of Max Johnson

Max Johnson, Champion

  • 450 Posts
  • 208 Reply Likes
Sorry, meant to post this as a reply to your other question above.