How to reduce the size of an image without clipping it ?
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not sure I understand what you're asking. If you mean the size (in bytes) of an image, when you save the image using GIMP you can change options around for the quality of the image and other things to make them take up less room but maybe not be as high-quality as they were to begin with. Otherwise, I can't think of any way to do it besides cropping the image, or something like that.
I have only used this a couple of times myself,so I'm no expert but I did manage to resize the image I needed.
Should be available via you distribution package manager.
the trooper
Thanks, I shall see how ImageMagic works once I have it installed.
Tex,
Thanks, your pointer was helpful. But I saw your profile picture, it is a big picture but definitely it must be of prerequisite size ! How come your picture is big but still fits in there ?
Last edited by Aquarius_Girl; 07-19-2010 at 05:17 AM.
There are fundamentally only three ways of reducing the size of an image file:
1. Cropping--discarding part of the image. (I think this is what you mean by "clipping")
2. Down-sampling--reducing the number of pixels used to represent the image. (This reduces the SPATIAL resolution)
3. Compression--reducing the fidelity of the encoding--eg with jpg compression. If an image is in RGB format and you change it to something like indexed color, that would also be considered compression. (Compression normally reduces RADIOMETRIC resolution--ie the acccuracy in depicting color and brightness information)
All can be done with just any reasonable image editor (GIMP for sure) or with Imagemagick.
If file size is the concern, jpeg can compress quite aggressively. You can go down to quality 25 or so and still have the image quite usable.
I disagree. Depending on the image, jpg compression at a quality of 25 can look absolutely terrible. For example, try it on an image with a solid object (or text) against a white background.
Semantics:
To me, "image size" means the size in pixels. By contrast, "file size" is the combination of image size and the encoding and/or compression method.
I've only used Gwenview to reduce image size without clipping. There's a Resize option in the Edit menu. Seems to work OK.
It made my picture too small just like yours
Quote:
Originally Posted by H_TeXMeX_H
Well, it has to be square, so I got a larger image, and then cut it out to be square, pasted it as a new image, then scaled it to whatever was needed.
I have the rectangle image, cutting it to square doesn't make it look good Even then I squared it off through Gwenview, then you say that I should scale it? Scaling reduces the dimensions and as LQ saya 120 by 120, it is extremely small!
HELP.
There must be some way to preserve the dimensions and reduce the size as well?
have the rectangle image, cutting it to square doesn't make it look good Even then I squared it off through Gwenview, then you say that I should scale it? Scaling reduces the dimensions and as LQ saya 120 by 120, it is extremely small!
HELP.
There must be some way to preserve the dimensions and reduce the size as well?
So you want to turn a rectangular image into a square image and not clip or stretch it? Impossible, unless you put colored bars on the sides of the image.
Use mogrify. By default, it scales the image without stretching it. If you want to stretch or squeeze it to fit the new size, then you put an exclamation mark after the resolution. Examples are at the link above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.