Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cropping diagonally

864 views
Skip to first unread message

chrisgm187

unread,
Aug 27, 2007, 5:58:40 PM8/27/07
to
Hi

Dose any one know how to crop an img in any other shape than a square. I have
a square photo that i want to half diagonally, i have used a mask but this has
left me with a lot of extra white space. Is there a simple way to do this.

thanks

Chris

pixlor

unread,
Aug 27, 2007, 6:19:44 PM8/27/07
to
Once you crop your photo, you want to resize your canvas to fit. Select Modify>Canvas>Trim Canvas.

Lanny Chambers

unread,
Aug 27, 2007, 10:06:42 PM8/27/07
to
In article <favheg$od$1...@forums.macromedia.com>,
"chrisgm187" <webfor...@macromedia.com> wrote:

> Dose any one know how to crop an img in any other shape than a square.

Nope, all digital images must be rectangular. If you export as GIF or
PNG8/PNG32, you can set the background to transparent and float the
image in its own CSS layer (DIV) over your page.

Alex Mariño

unread,
Aug 28, 2007, 9:11:04 AM8/28/07
to
Right click the photo, select Edit > Crop Selected Bitmap. Then, as
pixlor suggests, trim the canvas.

alex

Alex Mariño

unread,
Aug 28, 2007, 9:48:39 AM8/28/07
to
jeez ... never mind, I just saw the word "diagonally" -

pixlor

unread,
Aug 28, 2007, 12:27:31 PM8/28/07
to
[q][i]Originally posted by: [b][b]Newsgroup User[/b][/b][/i]

jeez ... never mind, I just saw the word "diagonally" -
[/q]

Woah! So it is.

Chris...sorry, images are rectangular, the bounding box is the best you can do.


chrisgm187

unread,
Aug 28, 2007, 4:10:28 PM8/28/07
to
Hi

Thanks for the input every one but this dose not solve my problem. I want to
crop an img from the top right hand corner to the bottom left so the photo
looks like a triangle. I can acheive this with a mask but i am left with the
other half of the img as excess canvas.

dave prescott

unread,
Aug 28, 2007, 4:17:01 PM8/28/07
to
images are always rectangular(or square) fill in the 'excess' canvas
with a colour or whatever to match the destination background.
;)

pixlor

unread,
Aug 28, 2007, 4:22:18 PM8/28/07
to
No, you can't get rid of the excess canvas, because raster images (.jpg, .gif,
.bmp, .png) are rectangular. In one way or another, the basic principle is to
create an array of pixels, width by height. There's no raster-based image
format for which the number of pixels in a row is dependent on the row number.

That said...what is it you're trying to accomplish that the blank area of the
canvas is in your way?


chrisgm187

unread,
Aug 28, 2007, 4:31:22 PM8/28/07
to
Ok

thanks every one I just wanted to check if i could break away from the rectangle
shape now I know i cant i will just use the mask i have in place

deebs

unread,
Aug 28, 2007, 5:45:09 PM8/28/07
to
There may be another way...

1 - insert the image into a canvas with a transparent background

2 - draw a triangular shape an position it over the part of the image
you wish to keep

3 - use either Modify > Mask > group as mask
OR
Modify > Convert path to marquee

4 - select export area tool and draw out a rectangle (there is no way to
escape rectangularity as far as I am aware) that is big enough to
accommodate both parts of the image (HINT: note X, Y, width height
values of the export area in case you need them later)

5 - right click in export area > export it using GIF or PNG 32

6 - do much the same for the other part of the image noting that if you
select the mask object in layer list > break the chain link between mask
and image object > then you should be able to transform the path that
may become a selection marquee

0 new messages