Re: [Gimp-user] Fit Canvas to Path



On 06/11/15 20:58, akovia wrote:
Would it be possible to script this in any way? Seems like it should be
a feature already as I keep looking for it but no matter how many times
I check, it never appears. :P

--
   akovia

Stroke the path with a 1px brush and autocrop the image

Without stroking it could be slow because you have to follow the path pixel by pixel and keep min/max coordinates. To do it a lot faster you can instead keep the min/max coordinates of anchors and handles but if this guarantees that you get a rectangle that contains the path, in the general case it won't be the tightest fit.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]