-
1. Re: Adobe Generator: yes! but do not crop my canvas size (option)
PECourtejoie Feb 7, 2014 12:03 PM (in response to brandingdesign)Hello, Photoshop CC 14.2 now supports padding thanks to the layer masks, I have not yet seen a description... http://blogs.adobe.com/crawlspace/2014/01/photoshop-cc-14-2-update-jdi-features-mac-proos- x-10-9-compatibility-and-notable-bug-fixes.html.
More info on this page of the Generator Github: https://github.com/adobe-photoshop/generator-assets/issues/40
(But does a generator discussion belong in the beginners forum?)
-
2. Re: Adobe Generator: yes! but do not crop my canvas size (option)
Silkrooster Feb 7, 2014 9:43 PM (in response to brandingdesign)I am not really seeing the need for it. If that was the case, it would make more sense to save the entire document.
The idea of a cropped images is to allow your browser to do the work of setting up the canvas size and the location of the image.
I have not tried it, but that information should be in the CSS panel.
If not, you could use slices and click the preview button in the save for web dialog and get the html code that would have the absolute coordinates of all the images and the size of the document.
-
3. Re: Adobe Generator: yes! but do not crop my canvas size (option)
sigtm Jul 7, 2014 1:54 AM (in response to Silkrooster)Silkrooster wrote:
I am not really seeing the need for it. If that was the case, it would make more sense to save the entire document.
There is plenty need for it. For one, not every project is a web site where CSS is even relevant. But if you have a large stack of icons, it is often incredibly inefficient to position them all individually with CSS instead of just exporting them as PNGs with matching dimensions. It also gives you better control over the scaling; for example, if you have 2px strokes that are going to be scaled to 50% on export, you want to align them to a 2px grid so they don't go fuzzy.
In my case I often need to export large batches (hundreds) of logos, which all need to be exported at canvas size and not trimmed to endless random sizes. The layer mask hack sounds like a lifesaver, but has plenty of shortcomings. It should be easy enough to add it as a simple parameter, and it would save a lot of time and hassle for a lot of users.
-
4. Re: Adobe Generator: yes! but do not crop my canvas size (option)
Silkrooster Jul 7, 2014 9:47 PM (in response to sigtm)Just a thought, but what would happen if you added a shape that fits the canvas that has no fill or stroke? That's how it works in illustrator.
-
5. Re: Adobe Generator: yes! but do not crop my canvas size (option)
sigtm Jul 8, 2014 2:11 AM (in response to Silkrooster)Just tried it (adding a shape layer with no fill to a group and making the whole group a PNG), but no luck – which makes sense since the default behaviour is to trim all transparent pixels from the exported PNG.
Adding a vector mask (my layers are smart objects) seems to throw a massive wrench into the works and only exports a seemingly random and completely unpredictable region of the layer. My vector masks all matched the document size, but the PNGs contained different, randomly sized sections from the bottom right corner of each layer. Really bizarre.
An alpha mask does work though, so that will be my go-to hack for now. They are a lot less elegant to work with than vector masks for my purposes, but I guess they'll do until a proper fix comes along.



