Questions tagged [images]

Something related to visual data files

Filter by
Sorted by
Tagged with
234
votes
24answers
589k views

What is the fastest way to view images from the terminal?

The terminal is very fast and convenient way to quickly access directories and files (faster than find and click on the directory). One thing that it cannot show in text-mode is "pictures". What ...
54
votes
9answers
34k views

Command line convert webp to jpg?

I'm using ubuntu 12.04. I've installed libwebp2 & libwebp-dev So far, no example found on the net of converting webp to jpg. Some webp files can easily converted by using imagemagick with ...
36
votes
8answers
39k views

shell command to get pixel size of an image

Is there a shell command that returns the pixel size of an image? I'm trying to produce an animated gif starting from different gifs with different sizes using convert (e.g. convert -delay 50 1.gif 2....
32
votes
5answers
30k views

How to Extract Album Cover Image from MP3 file?

I have a bunch of MP3 files that have their album art included within the file itself. I am now looking for a way to extract them to store them separably, at best from command line. Is there a way to ...
27
votes
5answers
19k views

Change file created date from JPEG EXIF metadata

When uploading to an ftp site, the original file create date seems to be lost, and I get the upload date instead. However, the Exif data in the file is correct. Is there a tool to batch change the ...
26
votes
2answers
11k views

Copy image from clipboard to file

Is it possible to take an image from the clipboard and output it to a file (using X)? I can do this with text easily: $ xclip -selection c -o > file.text But when I try the above with an image ...
22
votes
5answers
7k views

Copy image from command-line to clipboard

Is there a way in a bash to copy a picture to the clipboard? For example if there is a picture mypic.png I want to have a command like clipcopy mypic.png such that I can go for example to inkscape ...
21
votes
3answers
42k views

How to extract files from uImage?

Buildroot is generating images for an embedded device where they should run. This is working very well. In those images, the rootfs is included. Due to some research, I'd like to look into that ...
18
votes
3answers
17k views

How to split an image vertically using the command line?

Say I have a large 800x5000 image; how would I split that into 5 separate images with dimensions 800x1000 using the command line?
17
votes
8answers
10k views

Image viewer with auto-reload on file change?

Are there any image viewers which will auto reload the view when the image file is written to? I normally use debian variations of linux however appreciate all answers related to any "Unix & ...
17
votes
1answer
14k views

Setting image for i3-lock: “Could not load image x: out of memory”

I use this command for locking screen: i3lock -i /home/freyja/pics/owl.jpg The screen is locked, but there is no picture (only white background). When called from console the command says: Could ...
15
votes
2answers
2k views

How to cut image by top 30% in Unix?

I want to cut 30% from the top of the image. I know the thread How to cut a really large raster image into smaller chunks? but there is no successful approach because I cannot find a distance measure ...
15
votes
2answers
10k views

Open source duplicate image finder for Linux?

Is there a free and open source duplicate image finder for Linux based systems? Finding exact duplicates (based on content, not file name) is sufficient for me, but the ability to find similar images ...
14
votes
1answer
5k views

Random image generator

I am generating random data and trying to convert it to a PNG image using : head -c 1MB < /dev/urandom | hexdump -e '16/1 "_x%02X"' | sed 's/_/\\/g; s/\\x //g; s/.*/ "&"/' | tr -d "\"" | ...
13
votes
4answers
13k views

How to batch convert bitmaps to SVGs?

I have many gray scale bitmaps that I need to convert to a vector format, such as SVG. I have been using Inkscape, which gives nice results, but this takes about 10-15 minutes to open, convert, and ...
13
votes
4answers
17k views

How do you binarize a colored image?

My friend has an colored image with Chinese handwriting (basically by taking photo of or scanning what he wrote on a piece of white paper), and he would like me to convert it into a black and white ...
13
votes
5answers
3k views

Sort images by aspect ratio

I am trying to select a few art images to fit some new frames. I would like to be able to sort these images by proximity to a particular aspect ratio and then view them in decreasing order of ...
13
votes
6answers
7k views

Can I see images and watch movies inside the terminal emulator

Can I see images and watch movies inside the terminal emulator? In case of virtual console I can do it via framebuffer, but what about terminal emulators?
12
votes
2answers
2k views

How to generate a lot of (blank) images files?

For a test, I need to quickly create 1700 jpg-images (even blank) in a defined size 1000x706. I wonder if we could do this with a shell script or a program (like ImageMagick). I wish they called img_0....
12
votes
9answers
6k views

Options to show images when on the console

When I am on the console (the tty, the virtual terminal, which you reach with Ctrl+Alt+F1-6, not a terminal emulator), what options do I have to view images, tiff, whatever that's not text?
12
votes
2answers
8k views

How to store an image file in bash variable?

After I use the following command, pngString="$(cat example.png)" echo -n "$pngString" > tmp.png I can't open the tmp.png as a PNG file. Maybe some information is lost when I use $pngString ...
12
votes
3answers
22k views

How to extract images from video file?

I mean, how to generate images files from a video like screenshots.
10
votes
4answers
12k views

How to draw a single pixel in a terminal?

Until now I used characters to draw images, shapes etc in a terminal. Is it possible to draw a single pixel? Let's say: foo 1 1 red This will draw a red pixel at the coordinate (1, 1). Is there ...
10
votes
1answer
3k views

Combine multiple PDF files into one (arranged in a matrix)

Having a set of PDF files, lets say: in-01.pdf, in-02.pdf, in-03.pdf, ... I would like to combine all of them into a single one, forming an M x N matrix. The command montage allows for doing so (M ...
10
votes
1answer
3k views

Searching for a command line tagging tool for mp3 and ogg that supports pictures

I am searching a command-line tagging tool that supports ogg- and mp3-tagging and allows to add a picture to the tags. Currently I use lltag but that does not support pictures. dagger is the tool I ...
9
votes
2answers
3k views

renaming images to include creation date in name

When I look at the properties of an image, I can see the date the photo was taken in "Date Taken". When I edit the images (proprietary program) this data gets lost. How can I rename the image files ...
9
votes
2answers
13k views

How to batch resize all images in a folder (including subfolders)?

I have huge, 12GB, gallery on the server, full of images in various subfolders. Those files are too big and not used in full resolution. I need to resize all the images down to 820px wide (keeping ...
9
votes
1answer
1k views

Replace a image in a PDF using command line

I need to process some PDF files. The task consists in exchange a given image file by another. My first problem is how to replace a PDF image from command line in a batch process. Next I'll try to ...
8
votes
6answers
6k views

Find images by size: find / file / awk

I've been trying to find png image files a certain height (over 500px). I know that file will return image dimensions. Example: $ file TestImg1a.png TestImg1a.png: PNG image data, 764 x 200, 4-...
8
votes
1answer
7k views

ImageMagick (or other) for UTF-8 text to image

I'm trying to create many single-character images using convert. The purpose is to provide a plastics specialist with images to print onto keyboard keycaps. The ImageMagick documentation suggests ...
8
votes
1answer
5k views

Viewing large image on Linux

I need to view a large (50000x40000 px) png image on Linux. Unfortunately most tools (eog, convert etc.) either crashes or fail with note about too little memory. Is there a way to view this image (I ...
8
votes
2answers
744 views

Are there any comic book authoring programs?

Is there any software for creating comic books? The basic features needed are pre-drawn frames around the panels and the ability to easily drag and drop characters into the scene, add speech bubbles, ...
7
votes
3answers
2k views

How to rescale several images to same size

I have several image files in a directory. These images are similar size and have same background color. How can I make all images same size by adding background like this attached image?
7
votes
1answer
358 views

converting pdf pictures to png files makes pictures too small

I'm converting a bunch of pdf vector figures to png files. for f in *.pdf do convert -trim ${f} "${f}.png" done rename 's/\.pdf//' *.png But the dimension of the pictures are too small. The doc ...
7
votes
3answers
4k views

Irfanview alternative

I'm looking for some very simple image viewer with the following functionality: fast start next/previous navigation (in directory) full-screen mode reasonable format support keyboard controllable ...
7
votes
1answer
4k views

How can I preview the GRUB2 boot screen?

I've been reading a tutorial that shows how to set the background image that will be displayed behind the GRUB2 boot options menu. However, I am concerned that the text might not be visible against ...
7
votes
2answers
2k views

Terminal with image support

Is it possible to have sort of a hybrid terminal that can display isolated images in one or more designated panes? As I understand it, modern terminals are graphical emulations anyway, so obviously ...
7
votes
2answers
187 views

Sync Palm Centro pictures on Linux

I have a Palm Centro, and I'd like to copy the pictures to my computer. However, I'm using Ubuntu, and I don't want to switch to Windows or use Palm's horrible sync application (through Wine.) Is ...
6
votes
3answers
1k views

Shell script to separate and move landscape and portrait images

I have a directory of jpg images. Is there a shell script (bash or zsh would be acceptable) that would move all landscape images into a directory, and all portrait images into another directory?
6
votes
2answers
200 views

How to find y-axis joint similarity in two pictures?

I want to merge two pictures but I do not know how to find the cut location in y-axis by any Linux/Unix tools, but here ImageMagick as the first idea. Any approach is welcome: a programmatic solution ...
6
votes
1answer
8k views

How can I extract images from a pdf file? [duplicate]

I have a pdf file that consists of an image per page. Are there any command line programs that can extract these images?
6
votes
1answer
832 views

Console ScreenSaver without X11

I'm trying to setup a very slimmed down console only Debian system to act as a simple slideshow photo display. I know that it is possible to show graphics (I guess using the framebuffer) in the ...
6
votes
1answer
3k views

How to preview image in tmux in iTerm2

iTerm2 is able to display images within the terminal. I'm using the imgcat script and it works fine, but when I'm inside of tmux it does nothing. Is there a way to be able to preview images inline in ...
6
votes
2answers
932 views

Ways to convert and combine image files into a pdf file?

I have about 190 image files (png and jpg) in a directory. For more information, each image has 2500 x 3072 pixels, and about 500KB. I use the command convert from ImageMagik to convert and combine ...
5
votes
2answers
638 views

Converting and rescaling a lot of png images to jpeg

I have a lot of .png images in a folder. Is there a command (or software) that can convert all them to .jpg and (simultaneously) rescale the created .jpg files to 25% of their original size?
5
votes
3answers
3k views

How to convert multiple XCF files to PNG?

I have a folder with a lot of xcf files which I want all to be converted to png files, at best via a one-liner from bash. How can I achieve such a task?
5
votes
2answers
11k views

How to put a background image on GRUB?

I found some images on the internet about some GRUBs with a background image, I would like to do something like that too, but how? I have GRUB2.
5
votes
7answers
8k views

How to visualize directory tree structures?

I know I can use tree to show the nested content of a directory. Alas, its output is hardly beautiful as I want to include it in a documentation. So eye-candy is a requirement. So I was wondering if ...
5
votes
3answers
3k views

Convert all non-JPG images to JPGs

What command can I use to convert all images in a folder which are not JPGs (PNG and BMP primarily) to JPG? I'd also like the conversion quality to be 100%. And I'd like the converted images to ...
5
votes
2answers
16k views

open corel draw files on debian

So I have .cdr files on my PC and I want to open them on my Debian 7 box. What software do I need to be able to open it?` I have: 512 MB RAM 3 GHz processor 256 MB graphics with Debian 7