General :: Use "sips" At The Terminal To Resize An Image Without Upscaling?
Feb 3, 2011
I have some code that I've been using to resize images in Mac OS X via the command prompt (and/or quicksilver), to a maximum width or height of 500px. The only problem is that if the original image is smaller than 500px width or height, sips will upscale it. I would want it to just skip these images.
How can I make that happen?
This is my code:
#!/bin/bash
for ARG in "$@"
do
sips -Z 500 -s format jpeg "$ARG" --out "${ARG%.*}.jpg"
done
View 1 Replies
ADVERTISEMENT
Aug 22, 2011
I am looking for software (Windows or Linux) that can do the following: Resize one image to several provided sizes. Detects the type of the picture (wide, normal) and does the resize based on that. What I mean by that is that it should not break the image by shrinking it more in one direction then in the other so it looks weird. The purpose of this is my Blog. If I want to give my readers a wallpaper, I want to give them several options for the sizes so they can have it in their own preferred screen resolution. The image must however keep its original aspect ratio.
View 2 Replies
View Related
Jan 16, 2011
Im looking for resize an image from my computer to 100 pixels or less than 100 kb. I want to upload my picture profile here at the Fedoraforum.org
View 3 Replies
View Related
Jul 5, 2010
anyone know of a batch image resize resample program ? kinda like VSO or Infranview for linux ?
View 2 Replies
View Related
Mar 23, 2011
When I created the disk, I specified dynamically growth, but when I tried to copy a file larger than the available disk space (500MB), a message showed up saying that it couldn't be done.
Image resizing was added with VirtualBox 4.0:
VBoxManage modifyhd
<uuid>|<filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]
So why my VirtualBox 3.2.8 let me create the disk with dynamically growth option??
View 4 Replies
View Related
Dec 8, 2009
Ladies and gentlemen, I announce my 1st Qt4 application - Baires. Baires is a program that helps you easily resize bunch of pictures from one directory and place it to the same or another, with just one click (after initial setup, of course). With help of @microchip8, who built spec, RPMs and placed them to his repositories, I have now made an "official" download page at my site.
View 9 Replies
View Related
Jan 5, 2010
I'm trying to resize image for mplayer overlay usage. I'm using "convert -resize" from Imagemagick. My problem is that after resize image doesn't have the original color depth nor palette.Code:convert logo1.png -resize 200 PNG8:logo2.pngI'm able to resize image correctly if I manually set depth and type, but this is not working when I have to resize images with different palettes.Code:convert -depth 8 -type PaletteMatte logo1.png -resize 200 PNG8:logo2.pngIs there any CLI tool or specific convert option to resize image with keeping all the other image related setting as original
View 1 Replies
View Related
Jan 2, 2010
I'm looking for a graphics editor which will convert/resize the aspect ratio of the anamorphic images I create in-camera to their appropriate size. I'm shooting my images on film and digital. My digital camera is a Sony H50 with native 4:3 format. I'm also shooting with a Hasselblad EL/M with the standard 6x6 format.
Using my 2x anamorphic head on either camera will produce the following results: Sony H50: 4:3 > 2.66:1 (8:3) Hasselblad EL/M: 6x6 > 12x6. We're easily talking about 48"x24" or 60"x30" prints here folks! So I need to know which programs in Linux will give me the results I'm looking for.
View 11 Replies
View Related
Sep 17, 2010
MS office 2003 came with a prgram called "Microsoft Office Photo Manager". It was a surprisingly lightweight application that could adjust color, crop and resize photos. Very simple interface, easy to use. Perfect for simple modifications to digital photos. Is there anything like this in linux? Gimp is certainly not it. Office Drawing and F-Spot photomanager are not it either.
View 3 Replies
View Related
May 30, 2011
Does anyone else know of a terminal emulator that scales the fonts automatically when a window is resized?
My eyesight is horrible but I want to use more terminal applications. I also use AwesomeWM for tiling, so windows resize frequently. Also on the short list are cut/paste by keyboard and good support for launching links.
View 4 Replies
View Related
May 7, 2010
How do you get a background image in the terminal in Lucid Lynx, the tutorials I've found is for older releases. And something have changed because I can't find that option anywere.
View 9 Replies
View Related
Jun 6, 2011
Does anyone know how to set the background of a terminal to be an image, and not have it slightly transparent? I've set an image as my Terminal background, but now when I open a terminal over other applications I can see those applications through my Terminal background. Is there any way to stop this from happening?
View 9 Replies
View Related
Nov 27, 2010
There is a command that you can type into the terminal that would "burn" an iso image to a storage device (usb). In ubuntu, this command would be <dd if=(path leading to iso) of=(device to be "burned" to)> Is this the same in Fedora, or is it a different command?
View 6 Replies
View Related
Dec 14, 2010
I have a partition, which is 32GB and is mounted to / of the archlinux distribution.I want to create another partition, I need about 5GB and I want to take them from this partition.If I use parted to resize the partition will I lose any files?
View 5 Replies
View Related
Jun 1, 2011
I am currently running Ubuntu 11.04 (narwhal), dualbooting with Windows 7. When I installed ubuntu, i gave it a small(er) partition size for it to use (10gb total for swap and main partition). I now find I have run out of room on my Ubuntu partition, and want to (if possible) shrink down my Windows partioion and move some of that freed space to Ubuntu to expand it.I tried to use gParted from a live Ubuntu CD, but I can't seem to move any unused space into the Ubuntu partitions. Am i doing something wrong?
View 2 Replies
View Related
Apr 22, 2010
I have a dual boot system on my Laptop running Arch Linux and Windows XP. I have the following setup on my Laptop.
View 2 Replies
View Related
Nov 30, 2010
So I have a partition I wanna make smaller. I can use GParted but this is not secure. Even with backup - there are tons of personal files, I can't check 'em all if they are correct after resizing. So I thought maybe I can create a dir on another machine and do something like
Code:
cp -a / /mnt/0 # which is a mounted directory on another machine
and after repartitioning HDD get everithing back this way. Will it work?
View 8 Replies
View Related
Mar 5, 2011
Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).
View 2 Replies
View Related
May 10, 2010
Is it possible to make terminal (xfce4-terminal) transparent from bash script?
Maybe by enabling compostion?
View 1 Replies
View Related
Apr 22, 2010
I have a favorite REXX program called fv2. When I was a Windows user I had an icon for fv2 on the Quick Launch bar. Click that icon, and the program ran. Now, as a Linux (Ubuntu) user it is necessary to go through several steps to run fv2.
1) Launch a terminal by clicking on the terminal icon at the top of the screen. What's that area called? The GNOME panel?
2) Enter: ~/Desktop/RexxScripts
3) Enter: regina fv2
I run fv2 several times per day and would really like to have the convenience of a clickable icon.
View 3 Replies
View Related
Feb 1, 2010
I need to resize a NTFS partition in a disk for which I have an image (dumped with dd).
I mounted it through the loop device on linux:
# losetup -o 32256 /dev/loop0 disk.img # I got the offset from looking at fdisk's output
# mount /tmp/t /dev/loop0
# ls /tmp/t
[content of NTFS partition shows correctly]
# umount /tmp/t
# gparted /dev/loop0
gparted shows me the disk correctly; it just contains one large NTFS partition I want to shrink.
I have it had it running for one hour now.
Question: will this work? There is lots of disk access but the timestamp and size of the underlying file disk.img remain unchanged.
View 1 Replies
View Related
Jul 2, 2011
I want to increase the size of my Linux partition (yellow and highlighted in image), which is situated in an extended partition, along with my biggest partition.
When I try to select the options from any partitioning software (EASUS, Paragon, Gparted) the option to resize is not available (or can't enlarge).
For example in the Paragon Hard Disk Manager, I can't add free space before the partition, even if I first shrink the "G:" partition, then try to enlarge the one with Linux.
Do you know what's happening here? Why am I not allowed to resize the partition?
View 2 Replies
View Related
Mar 21, 2009
Computer hardware is not my bag. I accidentally installed ubuntu on external F drive, thinking it was C drive, unaware that ubuntu installs on drive with most available space. Installation involved partitioning the drive in about half. So, before I install it on C drive, I want to restore my F drive. I deleted partition using XP Disk Management tool and tried to use gParted on Parted Magic live boot cd to resize remaining partition that contains my data. But it doesn't seem able to expand the good partition to reclaim the 'unallocated' space. How do I accomplish this? Must I backup and reformat?
View 9 Replies
View Related
Jan 19, 2010
I'm currently in the process of remove a drive from an lvm. I am following this guide
[URL]
and to be honest I have also posted this question at [URL] but I have a fair amount of data at stake here and really need to make sure I'm acting safely. This is certainly not a place to button mash or guess.this is the 2nd drive that I am removing, the first one went off without a problem.However, I just received this error
Code:
resize2fs: Can't read next inode while trying to resize /dev/vg0/lvol0
and I'm not sure what it means or where to go from here. The entire output is
Code:
root@dude:/mnt# resize2fs -p /dev/vg0/lvol0 4466524456k
resize2fs 1.41.4 (27-Jan-2009)
Resizing the filesystem on /dev/vg0/lvol0 to 1116631114 (4k) blocks.
[code]....
View 14 Replies
View Related
Sep 20, 2010
I installed linux to my whole hard drive. I want to make it a little smaller to dual boot windows just for games. Gparted wont let me resize my partitions at all.
View 5 Replies
View Related
Nov 10, 2010
how to resize a filesystem in fedora and opensuse does any one know how to resize the filesystem in fedora and opensuse i have succeded in doing it in centos using fdisk i did the following steps i delete the partition using d then i create a new partition using n and then i save the changes then i run resize2fs and its done but in fedora and opensuse its not happening.
View 7 Replies
View Related
May 9, 2011
I need to know to to make a smaller .img file. I want to put ubuntu on my android phone (androlinux.com), but the ubuntu.zip file was to big to fit on my sd card. The .img file is too large, so I want to make a slightly smaller .img file to fit on the sd card.
View 2 Replies
View Related
Mar 30, 2010
OS: LINUX RHEL5
I want to resize the partition
for example..
my
/u01 is 50 gb.
/u02 is 30 gb.
i need to risize /u02 to 100gb( i have space left of around 60 gb and I need to take 10gb from /u01)
View 1 Replies
View Related
Sep 5, 2010
I have only a single main partition and a swap space on my laptop running ubuntu.I want to install another system on my computer so I need to create another partition. I tried using a disk utility provided by ubuntu but I get the error "disk is already in use".Is there a way to make that partition smaller and create another one without erasing my data?
View 3 Replies
View Related
Aug 21, 2010
I'm trying to resize a partition from a command line using the instructions on this page:
[URL]
The line below is the one I can't get to work right.
Quote:
Now, using fdisk, we must resize hda1 to 6000M, and create a new partition. Command: "fdisk /dev/had".In our case, the fdisk commands are "p d n p 1 1 +6000M t 7 a 1 n p 2 enter enter w", resulting in this "fdisk -l /dev/had" output :
I've made this work before but I cheated by using Acronis to create the partitions. I really want to get it to work from command line.
View 2 Replies
View Related