i am new in programming and for now i can code only in C#.
I really need your help for a Photoshop trimming script. I have searched for days now but cannot find how to achieve what i want.
It goes like this.
I have a PNG image of a character that is offset from the origin of the canvas.
Now I want to trim the transparency equally from both left and right until I hit the first pixel either from left or right (which ever comes first) then stop the trim (which means one side will not be trimmed all the way through because of the offset from origin). Same too for top and bottom. I am desperate for this since weeks and will be very glad if someone can help me.
Sample image below.
2
Answers
For example:
Whilst the answer above is what you need, (I’m not trying to compete with that) it may be useful for future reference to note you can trim to the smallest bounding box and then adjust the canvas size afterwards.