I've been breaking my head on this one.
I have a picture where I want to cut out one corner diagonally. (see pic)

I thought it would be as easy as cutting out a rounded corner, boy was I wrong.
The workaround I've come up with is:
- rotate the picture 45 degrees
- shorten the height
- enlarge the canvas so that dimensions are the same as just after the rotation
- rotate the picture back 45 degrees
- crop to the original size
As you can image, with this much image-actions, the picturequality gets worse.

Is there any other way to cut out a corner without losing picture quality?

CommentFileSizeAuthor
Picture 1.png26.38 KBdangko

Comments

dman’s picture

Eeek. what a concept.
But good lateral thinking to get that far!
Well, seeing as you are going for transparency (is that REALLY neccessary?) then I guess that just placing an overlay triangle in the top right won't do it.

It would be a job for the non-existent but occasionally discussed 'mask' action.

Or, in the meantime, a customaction routine I guess.
You could probably get there with 5 lines of PHP

It's not something that will become available as a common feature. Tricky.

fietserwin’s picture

Status: Active » Closed (works as designed)

Use the image mask effect: a grayscale image that puts a transparency layer over the image being processed. The mask image should have a black triangle in the corner you want to remove, and be white for the rest. Using grayscales you can "fade out" at the inner triangle edge if you want so.

Currently this effect automatically changes to png, but don't rely on that. That will be changed. See issue #955742: Action with Define Canvas on a JPG saves a PNG with JPG extension.

You will have to find or create this mask yourself and it should be resized before, as currently, the effect cannot resize masks.