adobe-photoshop / generator-assets

Generator Plug-in for Adobe Photoshop CC that helps users export image assets
MIT License
496 stars 86 forks source link

Feature request: Crop instead of Scale images #411

Open Jakobud opened 8 years ago

Jakobud commented 8 years ago

Currently, when you specify an output size, it scales the image. For example, lets say you have a layer:

mylayer.jpg

And in this case, the resulting file is 1000x400.

If you use this naming convention:

500x400 mylayer.jpg

The resulting output file is 500x400 except it's been squished (squashed?) in the horizontal axis for 50%.

It would be great if there was some way to use the resolution value to crop the output file instead of scale it. Is this currently possible in some way?

The only workaround I could figure out was to group my layer by itself, manually add a layer mask to the group (at the output resolution and composition that I want) and then name the layer name appropriately in order to output a cropped version of the image (along-side the original output file).

jvinge-watrust commented 7 years ago

@Jakobud have you found a solution yet? I understand that scripts can be written to use the Adobe Generator in unique ways, so I imaging this would have been done by someone by now...

Jakobud commented 7 years ago

I did not find a solution beyond manually manipulating the layers and masks to get what I wanted. It's a bummer.