Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Ken Bloom
> ---ORIGINAL MESSAGE--- 
> Date: Mon, 20 Jan 2003 01:48:33 -0800
> To: [EMAIL PROTECTED]
> Subject: Re: [vox-tech] gimp question: layers and resizing
> From: Peter Jay Salzman <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> 
> aha.
> 
> when you resize an image, it doesn't resize the layers of that image.
> that's why the selection was "clipped".  "layer to imagesize" resizes
> the layer.
> 
> is that about right?
> 
> thanks karsten!
> pete
> 

No. Each pixel stores 3 bytes of color information and one byte of 
transparency information. When you resize the canvas to make it larger, 
all of the new pixels are transparent (except on the background layer 
if one is present). The option "Keep Trans" option makes the GIMP's 
tools (all of them) modify only the color information. When Keep Trans 
is unchecked, the tools will operate on color information and 
transparency information. (Photoshop has a similar feature.)

-- 
PGP/GPG Fingerprint: D5E2 8839 6ED3 3305 805C  941F 9476 A9BD E2B2 CAD1
Import with `gpg --keyserver pgp.mit.edu --recv-key E2B2CAD1`
Also on www: http://wwwcsif.cs.ucdavis.edu/~bloom/kabloom.asc
For more information about PGP and GPG, see http://www.gnupg.org/



msg04103/pgp0.pgp
Description: PGP signature


Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Bill Kendrick
On Mon, Jan 20, 2003 at 02:36:13AM -0800, Peter Jay Salzman wrote:
> for instance, suppose i wanted the entire image to be shifted right by a
> certain amount.

See my previous post where I explained how to 'anchor' images using the
little arrow-headed "+" symbol toggler in the "Layers, Channels & Paths"
dialog.


 
> is it possible to select a portion of the image and have the selection
> include multiple layers?

Mm... Not really.  Some tools (like color-picker) can be told to work with
layers that way, but generally no.

Of course, when you choose different layers, the selection doesn't change,
so you can do the same "thing" (e.g., apply a filter or do color changes)
to the same 'spot' in each layer, one by one...


 
> ps- i thought of one more question.  i just realized that if i use fonts
> in an image, it can be the case that a month from now if i want to add
> more lettering, i'll completely forget the font name and size of the
> font i originally used.
> 
> is it possible to add comments to an image so i can document this kind
> of stuff?

Depends on the file format. :^)

What you really want, though, maybe, is to use the 'Dynamic Text' tool.
It's a totally different tool "paradigm" (I love that word), compared to the
'normal' text tool.

Double-click the 'Text' tool icon in the toolbox, and check "Dynamic Text."

Now, when you click in the canvas to type something, you get a completely
different text-entry dialog.  It looks more like a word processor than
the normal one.

The best part is that the text attributes (what the text says, like
"Hello there, this is some text", what font and size it's in, justification,
etc.) is all magically stored.  So you can go back and CHANGE the text
later, and it will simply change the magic 'dynamic text layer' it created.

So, in other words, if months down the road you realize you spelled
"Leenoox" wrong, you can go back and change it to "Linux", and it's not
a matter of manipulating a bitmap.  You simply change the string from
"Leenoox" to "Linux", hit [OK] or [Apply], and the image changes. :^)

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Karsten M. Self
on Mon, Jan 20, 2003 at 01:50:09AM -0800, Bill Kendrick ([EMAIL PROTECTED]) wrote:
> On Mon, Jan 20, 2003 at 09:06:08AM +, Karsten M. Self wrote:
> 
> > 
> > Create a new layer.  Make it white.  Merge with your existing
> > transparent layer (that's what the checkerboard represents), or delete
> > the transparent layer.  Or leave it...
> 
> There's no "transparent layer."  Every single one of his layers now have
> transparency.

I realized that when I looked at the image itself.  My point (as you
explained in another post) was that, if there is transparency in all
layers, then the portion of the image corresponding to a transparent
region in *all* layers will be transparent.

Adding a white layer to the bottom of the stack will make the image
opaque.

> It's like he was given a sheet of white paper, and then he added some
> sheets of cellophane on top of them.
> 
> Now he suddenly has a bigger desk to draw on, but none of his cellophane
> (or the white paper at the bottom) have been made bigger.

Right.  Your "resize layer to canvas" trick was one I hadn't been aware
of.  I learned something.

Peace.

-- 
Karsten M. Self <[EMAIL PROTECTED]>http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   Geek for hire:  http://kmself.home.netcom.com/resume.html
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



[OT] fixing posting woes Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Jim
test.  Please ignore
- Original Message - 
From: "Peter Jay Salzman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 1:48 AM
Subject: Re: [vox-tech] gimp question: layers and resizing


> aha.
> 
> when you resize an image, it doesn't resize the layers of that image.
> that's why the selection was "clipped".  "layer to imagesize" resizes
> the layer.
> 
> is that about right?
> 
> thanks karsten!
> pete
> ___
> vox-tech mailing list
> [EMAIL PROTECTED]
> http://lists.lugod.org/mailman/listinfo/vox-tech
> 
> 


___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Peter Jay Salzman
w00t!

worked like a charm, and i really learned a lot from this little
exercise.  could've done it as a 1 layer thing, but i wanted to learn
what layers were all about.  thanks!  i understand everything you said.

one last question -- i can see working with layers can be pretty
tedious.  is it possible to perform operations on all layers at once?

for instance, suppose i wanted the entire image to be shifted right by a
certain amount.

right now what i would do is enable grids and go through each layer,
selecting and dragging.

is it possible to select a portion of the image and have the selection
include multiple layers?

i think i understand that the cellophane analogy too.  you look
"through" each layer, starting with the top layer and ending with the
bottom layer.  that's why you want the white background as the bottom
layer, otherwise it'll cover up any layer underneath it.

thanks bill, this is great!

pete

ps- i thought of one more question.  i just realized that if i use fonts
in an image, it can be the case that a month from now if i want to add
more lettering, i'll completely forget the font name and size of the
font i originally used.

is it possible to add comments to an image so i can document this kind
of stuff?



begin Bill Kendrick <[EMAIL PROTECTED]> 
> On Mon, Jan 20, 2003 at 12:33:32AM -0800, Peter Jay Salzman wrote:
> 
> > i've got an image that i created (saved as xcf format.  is that correct
> > if i want to keep the layers intact?)
> 
> Yes.  XCF is Gimp's native format.  It stores all layers, alpha levels,
> selections (did you know you can have more than one? :^) ), paths, etc.
> 
> 
> 
> > 
> > i'd like to make the whole image longer.  so:
> > 
> >Image | Canvas Size | Height (increased it by a bit)
> > 
> 
> > 
> > the original image is white with some graphics in it that i'd like to
> > move into the checkerboard portion.  the checkerboard region is ...
> > well, a grey checkerboard.  i don't know how else to describe it.  it's
> > wierd.
> 
> Your image is larger, but the layers are all still the original size.
> 
> The easiest fix is to right-click the canvas and select
> 'Layer to Image Size' from the 'Layers' submenu.
> 
> You'll need to do this to each layer.
> 
> Notice when you do this that the 'outline of the current layer'
> (the black-and-yellow dashed line) will grow to the size of the canvas. :^)
> 
> 
> Now, you'll still have 'checkerboard' in the parts outside the image,
> but that's simply where that part of your layer(s) are transparent.
> 
> Once you've resized the layer(s) you need to resize...
> 
> > i'd like to move parts of my original image into the checkerboard
> > region, but when i move the selection, the image selection is "clipped"
> > by the boarder between the original section and checkerboard.
> 
> ...this won't happen any more. :^)
> 
> 
>  
> > 0. make the checkerboard portion "white" just like the original image.
> 
> Create a new layer, tell Gimp to fill it in with white, and then make
> sure it gets moved down to the very bottom position in the
> "Layers, Channels & Paths" dialog.
> 
> 
> > 1. make a selection of a portion of the original image (which resides on
> > a layer).
> > 
> > 2. move the selection into the checkerboard region without clipping.
> 
> See above. (Make the layer itself the same size as the image... or
> simply bigger, if you feel like messing with the "Layer Boundary Size"
> option.  (Right-click the layer icon int he "Layers, Channels & Paths"
> dialog, and select 'Layer Boundary Size' and go from there.)
> 
> 
> > sorry for the lameness.  :)
> 
> No problem.  Gimp is a big, complicated beast.  Fun, though, once you get
> used to it. :^)
> 
> 
> > ps- i placed a copy of this image in www.dirac.org/p/7b9.xcf if anyone
> > wants to take a look at what i'm talking about.
> 
> 
> Looking at this, the other thing you can do is literally move the
> position of the layers around.  Since each 'object' (or set of objects)
> in your image are on their own layers, you can move them around using
> the 'Move' tool.  (Looks like an arrow-headed "+" shape in the toolbox.)
> 
> With no selection active (hit Shift+Ctrl+A to 'Select None' to be sure),
> choose a layer in the "Layers, Channels & Paths" dialog window, and then
> go into the image window and click and drag using the 'Move' tool.
> 
> The entire contents of the layer will move (and you'll notice when you
> let go of the layer, the yellow-and-black outline will have been moved,
> as well).
> 
> Unfortunately, all of your layers are a bit bigger than the actual
> drawing inside them, so once you've moved them, you'll want to reshape them
> so that they don't extend outside the shape of the canvas itself.  e.g.:
> 
>   ---
>   | | <- canvas
>   | |
>   |  =-=-=-=-=-=-=-=-=
>   |  |  ||
>   |  M  |M
>   |  |  ||
>   |  M  |M
>   |--|---|  <- layer
>  M   M
>  

Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Bill Kendrick
On Mon, Jan 20, 2003 at 09:06:08AM +, Karsten M. Self wrote:

> 
> Create a new layer.  Make it white.  Merge with your existing
> transparent layer (that's what the checkerboard represents), or delete
> the transparent layer.  Or leave it...

There's no "transparent layer."  Every single one of his layers now have
transparency.

It's like he was given a sheet of white paper, and then he added some
sheets of cellophane on top of them.

Now he suddenly has a bigger desk to draw on, but none of his cellophane
(or the white paper at the bottom) have been made bigger.


-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Bill Kendrick
On Mon, Jan 20, 2003 at 12:33:32AM -0800, Peter Jay Salzman wrote:

> i've got an image that i created (saved as xcf format.  is that correct
> if i want to keep the layers intact?)

Yes.  XCF is Gimp's native format.  It stores all layers, alpha levels,
selections (did you know you can have more than one? :^) ), paths, etc.



> 
> i'd like to make the whole image longer.  so:
> 
>Image | Canvas Size | Height (increased it by a bit)
> 

> 
> the original image is white with some graphics in it that i'd like to
> move into the checkerboard portion.  the checkerboard region is ...
> well, a grey checkerboard.  i don't know how else to describe it.  it's
> wierd.

Your image is larger, but the layers are all still the original size.

The easiest fix is to right-click the canvas and select
'Layer to Image Size' from the 'Layers' submenu.

You'll need to do this to each layer.

Notice when you do this that the 'outline of the current layer'
(the black-and-yellow dashed line) will grow to the size of the canvas. :^)


Now, you'll still have 'checkerboard' in the parts outside the image,
but that's simply where that part of your layer(s) are transparent.

Once you've resized the layer(s) you need to resize...

> i'd like to move parts of my original image into the checkerboard
> region, but when i move the selection, the image selection is "clipped"
> by the boarder between the original section and checkerboard.

...this won't happen any more. :^)


 
> 0. make the checkerboard portion "white" just like the original image.

Create a new layer, tell Gimp to fill it in with white, and then make
sure it gets moved down to the very bottom position in the
"Layers, Channels & Paths" dialog.


> 1. make a selection of a portion of the original image (which resides on
> a layer).
> 
> 2. move the selection into the checkerboard region without clipping.

See above. (Make the layer itself the same size as the image... or
simply bigger, if you feel like messing with the "Layer Boundary Size"
option.  (Right-click the layer icon int he "Layers, Channels & Paths"
dialog, and select 'Layer Boundary Size' and go from there.)


> sorry for the lameness.  :)

No problem.  Gimp is a big, complicated beast.  Fun, though, once you get
used to it. :^)


> ps- i placed a copy of this image in www.dirac.org/p/7b9.xcf if anyone
> wants to take a look at what i'm talking about.


Looking at this, the other thing you can do is literally move the
position of the layers around.  Since each 'object' (or set of objects)
in your image are on their own layers, you can move them around using
the 'Move' tool.  (Looks like an arrow-headed "+" shape in the toolbox.)

With no selection active (hit Shift+Ctrl+A to 'Select None' to be sure),
choose a layer in the "Layers, Channels & Paths" dialog window, and then
go into the image window and click and drag using the 'Move' tool.

The entire contents of the layer will move (and you'll notice when you
let go of the layer, the yellow-and-black outline will have been moved,
as well).

Unfortunately, all of your layers are a bit bigger than the actual
drawing inside them, so once you've moved them, you'll want to reshape them
so that they don't extend outside the shape of the canvas itself.  e.g.:

  ---
  | | <- canvas
  | |
  |  =-=-=-=-=-=-=-=-=
  |  |  ||
  |  M  |M
  |  |  ||
  |  M  |M
  |--|---|  <- layer
 M   M
 =-=-=-=-=-=-=-=-=

You can just do the 'Layer to Image Size' trick above.


Note: When you move layers around, you can actually move multiple layers
at once.  If you click the blank space to the left of a layer's icon
(and to the right of the 'visible or not' eyeball symbol) in
the "Layers, Channels and Paths" dialog, a little arrow-headed "+" symbol
will appear.

You can 'anchor' a number of layers, and then when you move one of them
(with the 'Move' tool), or another unanchored layer, all of them will move
together. :^)

-bill!

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Peter Jay Salzman
aha.

when you resize an image, it doesn't resize the layers of that image.
that's why the selection was "clipped".  "layer to imagesize" resizes
the layer.

is that about right?

thanks karsten!
pete
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] gimp question: layers and resizing

2003-01-20 Thread Karsten M. Self
on Mon, Jan 20, 2003 at 12:33:32AM -0800, Peter Jay Salzman ([EMAIL PROTECTED]) wrote:
> hola,
> 
> ok, tonight i made history.  it was the first time i've ever used layers
> in my life.
> 
> i've got an image that i created (saved as xcf format.  is that correct
> if i want to keep the layers intact?) with 7 layers.
> 
> i'd like to make the whole image longer.  so:
> 
>Image | Canvas Size | Height (increased it by a bit)
> 
> now i'm staring at my original image -- it looks like this:
> 
> 
>--
>|   ||
>|   ||
>|original   ||
>|   ||
>|   ||
>|   ||
>||
>||
>||
>|  checkerboard  |
>||
>||
>||
>--
> 
> the original image is white with some graphics in it that i'd like to
> move into the checkerboard portion.  the checkerboard region is ...
> well, a grey checkerboard.  i don't know how else to describe it.  it's
> wierd.
> 
> i'd like to move parts of my original image into the checkerboard
> region, but when i move the selection, the image selection is "clipped"
> by the boarder between the original section and checkerboard.
> 
> it appears that my image is indeed larger, but the checkerboard region
> looks unusable.  i can't do anything with it.
> 
> how can i:
> 
> 0. make the checkerboard portion "white" just like the original image.

Create a new layer.  Make it white.  Merge with your existing
transparent layer (that's what the checkerboard represents), or delete
the transparent layer.  Or leave it...

> 1. make a selection of a portion of the original image (which resides on
> a layer).

Activate that layer (in the 'layers' dialog).  Click around, you'll find
it.

Select the portion of the image you want.  Copy or cut it as you want.

> 2. move the selection into the checkerboard region without clipping.

Activate the new layer.  Paste.

Check that you don't have the "keep trans" (preserve transparency)
setting checked on that layer.

Layers rock.

> sorry for the lameness.  :)
> 
> pete
> 
> ps- i placed a copy of this image in www.dirac.org/p/7b9.xcf if anyone
> wants to take a look at what i'm talking about.
> 
> pps- the reason i want to do this in the first place is that gimp prints
> this image "sideways" in landscape mode.  i'd like for it to print in
> portrait mode, so i want to make the image longer but more narrow by
> make the 2x3 array into a 3x2 array.

$ mogrify -rotate 90 foo.gif

...is another option.

-- 
Karsten M. Self <[EMAIL PROTECTED]>http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
The truth behind the H-1B indentured servant scam:
http://heather.cs.ucdavis.edu/itaa.real.html
http://www.zazona.com/ShameH1B/
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



[vox-tech] gimp question: layers and resizing

2003-01-20 Thread Peter Jay Salzman
hola,

ok, tonight i made history.  it was the first time i've ever used layers
in my life.

i've got an image that i created (saved as xcf format.  is that correct
if i want to keep the layers intact?) with 7 layers.

i'd like to make the whole image longer.  so:

   Image | Canvas Size | Height (increased it by a bit)

now i'm staring at my original image -- it looks like this:


   --
   |   ||
   |   ||
   |original   ||
   |   ||
   |   ||
   |   ||
   ||
   ||
   ||
   |  checkerboard  |
   ||
   ||
   ||
   --

the original image is white with some graphics in it that i'd like to
move into the checkerboard portion.  the checkerboard region is ...
well, a grey checkerboard.  i don't know how else to describe it.  it's
wierd.

i'd like to move parts of my original image into the checkerboard
region, but when i move the selection, the image selection is "clipped"
by the boarder between the original section and checkerboard.

it appears that my image is indeed larger, but the checkerboard region
looks unusable.  i can't do anything with it.

how can i:

0. make the checkerboard portion "white" just like the original image.

1. make a selection of a portion of the original image (which resides on
a layer).

2. move the selection into the checkerboard region without clipping.

sorry for the lameness.  :)

pete

ps- i placed a copy of this image in www.dirac.org/p/7b9.xcf if anyone
wants to take a look at what i'm talking about.

pps- the reason i want to do this in the first place is that gimp prints
this image "sideways" in landscape mode.  i'd like for it to print in
portrait mode, so i want to make the image longer but more narrow by
make the 2x3 array into a 3x2 array.

-- 
First they ignore you, then they laugh at you, then they fight you,
then you win. -- Gandhi, being prophetic about Linux.

Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech