Yes, there is an option. First download the following deb packages:
Second, install them using the following commands in your terminal:
sudo dpkg -i /path/to/gnome-terminal-data_3.6.1-0ubuntu4.1_all.deb
sudo dpkg -i gnome-terminal_3.6.1-0ubuntu4.1_i386.deb
#or, depending on what you downloaded
sudo dpkg -i gnome-terminal_3.6.1-0ubuntu4.1_amd64.deb
And third, restart your terminal.
From now, when you will open your gnome-terminal you can quickly search on Google command line errors, warnings and other things. Highlight the text, right-click on it and choose "Search on Google". It opens the default web browser and go to the google search result page:
Source: Add Google Search to Gnome Terminal in Ubuntu 13.10
ImageMagick
If you want the command-line option, go with ImageMagick
Install with sudo apt-get install imagemagick
Usage
Most operations will use the convert
command. To convert an image into another format, you essentially rename your image with the desired file extension.
convert image1.png image1.jpg
To resize images, use the -resize
option.
convert image1.png -resize 200×100 image1.png
Note that when using -resize
, ImageMagick will preserve the image's aspect ratio and fit it into an image with the specified dimensions. To force an image to a particular size, append an !
to the dimensions.
convert image1.png -resize 200×100! image1.png
Rotate images with the -rotate
option, using degrees. The following command would rotate an image 90 degrees.
convert image1.jpg -rotate 90 image1-rotated.jpg
Since this is a command-line tool, you can take advantage of Bash and perform bulk operations. The following command would take all PNG files in the current directory, rotate them, and save a new copy of each with “-rotated” added to the beginning of each file name.
for file in *.png; do convert $file -rotate 90 rotated-$file; done
During any given operation, if the name of your output image is the same as the input image, the operation will overwrite the original image. Otherwise a new image will be created.
You can find more complete documentation here on the ImageMagick website.
Limitations
- Convert an entire PDF file to a bunch images
- Extract an image from a Windows .ico file
I am unsure if these operations are possible.
- Convert images to DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, TIFF, and other formats
I am unsure if all those file formats are supported by ImageMagick
Answer source
Best Answer
findimagedupes
is a common command-line application for finding similar or identical images. You can install it by executing the following:You could also set up an OpenCV script using Python, but that would take a bit of studying.