Post Reply 

Getting an image to fit

Jan 1, 2014, 19:24
Post: #1
Getting an image to fit
I have an image on a web page, see imageA, but the image is originally chopped at the left (see original image B). I'd like the imageA to stretch most of the way across the white space. I've enlarged it and tried to crop, but it eliminates what I'd like to be shown, which is what appears in imageA. Any thoughts, tricks, guidance will be appreciated.


Attached File(s) Image(s)
       
Find all posts by this user
Quote this message in a reply
Jan 2, 2014, 02:01
Post: #2
RE: Getting an image to fit
(Jan 1, 2014 19:46)ofnuts Wrote:  What you want isn't very clear.... what "white space"? Are you looking for something like this?



If not, can we talk about actual dimensions in pixels....

Note: unless you intend to add thing in the added space, the image above isn't really necessary. With HTML you can position your existing imageA on the left side of a "DIV" of appropriate dimensions, with a white background.

Thank you for your reply. Yes my image A should have looked more like your example.
I currently have " imageA on the left side of a "DIV" of appropriate dimensions, with a white background". I'd like to somehow take center it in the DIV, but somehow not make the left side so cut off, or somehow stretch the image acress the horizontal DIV space, if possible. Thanks again
Find all posts by this user
Quote this message in a reply
Jan 2, 2014, 16:52
Post: #3
RE: Getting an image to fit
Thanks for your reply.
However, if I followed your instructions correctly, it just centered the image on the canvas.
I'm trying to get image A to somehow be 370 x 100.
Find all posts by this user
Quote this message in a reply
Jan 2, 2014, 17:43
Post: #4
RE: Getting an image to fit
Going back to Ofnuts post on canvas size. If you are struggling.

Crop or resize your image B to the required 100 high.

Go into image -> canvas size.

set the new width to whatever you want 370.

Move the thumbnail around with the 4-way arrow. In this case other than extreme left (x & y = 0) does not make much sense.
If you set resize layer to all visible, it will flatten the image.

[Image: pw9pewh.jpg]

the result is in the inset

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Jan 2, 2014, 18:41
Post: #5
RE: Getting an image to fit
Thank you for your reply.
I'm sorry if I haven't been more clear on my goal.
I'm not interested in the ability to "Move the thumbnail around" the canvas.
I'd like the image to fill the 370 x 100 more, with less white space on the left (like stretching the image horizontally, with the least amount of distortion).
Any additional help will be greatly appreciated.
Find all posts by this user
Quote this message in a reply
Jan 2, 2014, 19:37 (This post was last modified: Jan 2, 2014 19:39 by rich2005.)
Post: #6
RE: Getting an image to fit
Quote:..I'm not interested in the ability to "Move the thumbnail around" the canvas...

Just going by Ofnuts image which you said was the sort of thing you were looking for.

Don't know how you will do what you want, with only part of the womans head, which will have to be hard left.

Maybe move the hand and web cam

These three stages

a small crop and resize the canvas to the correct proportions
cut the hands/webcam and move right
rescale to 370x100 using liquid rescale. Depends how much distortion is acceptable

[Image: tDdhGPn.jpg]

with that aspect ratio I can't really see you losing much "white space"

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Jan 3, 2014, 00:53 (This post was last modified: Jan 3, 2014 00:57 by iForStyle007.)
Post: #7
RE: Getting an image to fit
If you want the whole image stretched with minimal distortion, this is where the liquid Re-scale plugin shines (add-on)

After you install it, it will be under the "Layers" menu.

Though with my testing on your image, there is a limitation to how wide you can make it, (at full strength) but not how tall(height)

(pic 1)
The top image is with the LQR plugin (first try)
Under it the original
[Image: attachment.php?aid=2851]
.
(Pic 2)
*click to enlarge
   
.
2nd try, i made a cleaner selection-fill preserve mask for just the width (you start to reach a threshold/limit at 218 width).
So you will need to run the plugin once with the mask for the width, click ok.
then turn off the mask and change the height to 100 with LQR.

*It may be a matter of painting the right places to get it to stretch more, but that's what I got on my 2nd try(maybe a looser fill, with some of the white in the background will work better...) Try it out Smile


Attached File(s) Thumbnail(s)
   

"In order to succeed, your desire for success should be greater than fear of failure." BC
[Image: 29uocaf.png]
iFS007 tut vids on YT ~ auto color B&W landscape tut
Visit this user's website Find all posts by this user
Quote this message in a reply
Jan 3, 2014, 01:32
Post: #8
RE: Getting an image to fit
Thanks for all of your replies/help
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Tracing an Image GoddessKairos 1 98 Jun 12, 2018 21:42
Last Post: paynekj
  Resizing an image without pixelation? nopropsgames 2 139 Jun 9, 2018 22:39
Last Post: nopropsgames
  After floating a layer, how do you return the selection to the whole image? ithortureu 1 110 May 13, 2018 07:15
Last Post: paynekj
  Opening an image problem mes2370 1 150 May 11, 2018 15:20
Last Post: paynekj
  How can I resize one layer to fit another? dblj 1 318 Apr 20, 2018 21:15
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS