Post Reply 

Full image appearing after cut and paste, save-as

Oct 23, 2012, 20:00
Post: #1
Full image appearing after cut and paste, save-as
Hello all,

I'm not a raw beginner but I don't claim to be professional either. I have an issue that I have not been able to sort out so am looking for some help. If I take an image, and using the path tool, draw an area, then do a selection from path, cut/copy and paste as 'new image' then save the new image as a .bmp, .jpg etc, I am getting the whole original image instead of the cut an pasted portion. The full image does not show up as long as the drawing remains in .xcf (the background is a grey checkerboard). When saved as .jpg or .bmp the checkerboard is replaced by the original source image that it was cut from. This is Gimp 2.6.11 under Linux.

I have checked for extra layers, tried removing alpha channels, doing a 'copy visible' and re-pasting, merging of all layers all to no avail. It doesn't always happen either so there must be something, some setting or clicky box somewhere.
Find all posts by this user
Quote this message in a reply
Oct 24, 2012, 00:18
Post: #2
RE: Full image appearing after cut and paste, save-as
When you save as JPG, the transparency is replaced by the default background color(*) because you cannot give transparency in the JPG format. If you need to save an image with transparent parts, use the PNG format. See "image formats" in my sig.

(*) of course, if you removed a white background, and white is added back you don't see much difference, but if you removed some other color, you would notice the background change.

PS: to remove a uniform white background, there are better (and much faster) techniques, see "Background removal" in my sig.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Oct 25, 2012, 15:14
Post: #3
RE: Full image appearing after cut and paste, save-as
(Oct 24, 2012 00:18)ofnuts Wrote:  (*) of course, if you removed a white background, and white is added back you don't see much difference, but if you removed some other color, you would notice the background change.

I cut a piece out of a photo and the whole photo appears...
I need to import the final image into a program that accepts only .jpg,.bmp and .tga files. Surely there is a way to remove the cut area entirely into a new image without the legacy data?
Find all posts by this user
Quote this message in a reply
Oct 25, 2012, 15:40 (This post was last modified: Oct 25, 2012 15:56 by paynekj.)
Post: #4
RE: Full image appearing after cut and paste, save-as
Just so we're all talking about the same thing:

You create a path
You convert to a selection using Select>>From Path
You copy the selection Edit>>Copy
You paste the copied selection to a new image: Edit>>Paste As>>New Image
You flatten the new image because the file formats you need don't support transparency: Image>>Flatten Image

At this point you should have your copied selection with a background with a solid colour.

And now I see what the problem is. I tried not flattening and just saving as a .bmp (I have it in the back of my mind that .bmp supports transparency) and I get the background that was removed - up to the edges of the rectangular bounding box of the selection. That's very weird and not right. Also the same behaviour on GIMP 2.8.2 and I'm using Windows XP

Kevin

Edit:

Tried saving as a .jpg - this forces a flatten so I just get the selection on a solid background
And the .tga saves the transparency, so disregard what I said above and save as a .tga
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  "Open Image" change default folder and thumbnail view? Dave001 1 61 Aug 15, 2017 19:56
Last Post: ofnuts
  How to wrap paragraph text in an image arun67 0 47 Aug 12, 2017 12:46
Last Post: arun67
  nothing works from the File menu, can't save, export, close, etc jperiod 1 50 Aug 3, 2017 05:19
Last Post: ythgilb
  Combining gif image to static image help? littlegreendog 1 77 Jul 26, 2017 12:27
Last Post: ythgilb
  Image color vs color picker YalithKBK 1 119 Jul 7, 2017 11:45
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS