Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [image-manipulation]

Use this tag for questions related to the changing/combining of files containing pictures or other images. (Dumps of filesystems are often called images, but handling those is not called image-manipulation)

1
vote
0answers
58 views

Cwebp -resize only if image is larger

cwebp - Compress an image file to a WebP file -resize width height Resize the source to a rectangle with size width x height. If either (but not both) of the width or height parameters is 0, the ...
0
votes
2answers
46 views

A bash script to square a tall image of a long text column?

Ever seen a print of a long discussion thread? Looks like the picture of a skyscraper… with only the building in it! So what I generally do — manually! — is break up the image into segments, and then ...
1
vote
3answers
44 views

After installing ImageMagick I don't have the tool imgout

uname -a Linux localhost.localdomain 4.13.16-100.fc25.x86_64 #1 SMP Mon Nov 27 19:52:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I tried to install ImageMagick using the command: yum install ...
0
votes
0answers
11 views

tool like pnmcut but optimized for static files on disk?

Here's the scenario. I have a ginormous image (~ 30,000 pixels across, so my ginormous might be small to you). I want to take a lot of small cut outs from it. I have code right now that works with ...
1
vote
0answers
32 views

Cli add grid to batch of images [closed]

I need some command that adds a grid to a series of images. Something like: $ convert image*.png -addgrid 1cm The closest alternative that I found was to break the image into parts (with convert -...
2
votes
0answers
134 views

Create small high-quality GIF/APNG from a bunch of PNGs

I have 50 PNGs (like those ones here) and I would like to create a GIF (or APNG) animation from it that approximately retains the quality and is small. What I'm doing so far is to rescale and throw ...
1
vote
1answer
23 views

How can I quickly preview an image with a circular frame?

Some images are displayed in a circular frame after uploading. For example, GitLab project icons: When tweaking an image on the desktop, I don't really know how it will look in a circular frame ...
1
vote
1answer
340 views

Automatically restoring verticality of the edges of a scanned photo

I want to scan a collection of rectangular photos, both color and black-and-white. I am generally quite happy with the scanning, but I run into some practical problems, due to the fact that photos are ...
0
votes
0answers
26 views

Understanding transparency on images: imagemagick != gimp

I'm trying to understand how the transparency is used, because I've strange outputs. So, first here is my base image with a white background: In my browser (firefox), it displays quite "dark", and ...
0
votes
1answer
180 views

How to use ubifs image with modprobe? To extract ubifs image

I try to do something like this - link. All examples in the web are not working at all. modprobe ubi mtd=0 modprobe: module ubi not found in modules.dep modprobe ubi modprobe: module ubi not found ...
3
votes
1answer
90 views

How to merge 2 images under linux console (via sh script)

I have jpeg image on the server from IP camera. This is every 1-second snapshot. Because of privacy, I need to cover the closest balcony. I was prepared a cover png image. Is it possible to make a ...
0
votes
2answers
67 views

Lossless crop JPEG to whole 8x8 blocks

Since JPEG images are compressed in chunks of 8x8 pixels, if a JPEG has a width or height that is not divisible by 8, is it technically possible to remove the 1-7 pixels of the outer edge losslessly? ...
0
votes
1answer
48 views

get coords of all instances of a subimage

This command: compare -metric mse -subimage-search image.jpg subimage.jpg null: gives me value for given metric and coordinates of an occurence of a subimage. What if I want coordinates for all the ...
1
vote
0answers
722 views

Clear image background and remove vertical line

I want to clear vertical line and other black spot which is near to number. Here is my Input image:- I tried below command but it's remove vertical line but also cut number and still black spot ...
0
votes
0answers
26 views

Gimp Plugin to batch-export several different color shades

I hope someone can give me some info on whether or not a plugin exists for Gimp which will automatically do the following... I've created an icon which I want to save as several different color ...
5
votes
6answers
2k views

How can I split each PDF page into two pages, using the command line?

I have a few ebooks scanned from originals. They're formatted so that a single PDF page contains two actual pages: one on the left, and one on the right. I want to programmatically split each PDF ...
0
votes
1answer
103 views

Triangular 2d mesh linear image deformation

I'm in need of an application that would let me define a set of vertices (handles) on top of an image layer, derive a DeLaunay triangulated mesh from those handles, and allow me to reposition the ...
1
vote
1answer
67 views

CLI Tool to manipulate / compress images in pdf

In a large pdf with high image quality (20 pages, around 400 MB): For Linux, is there a CLI tool that reduces the file size by reducing the quality of all (or single) images within the pdf allows me ...
3
votes
1answer
930 views

Imagemagick 'convert' text to image: ReadTEXTImage: Assertion

I'm trying the following command to convert text to an image: $ echo test | convert text:- text_box_trimmed.png convert: ../../coders/txt.c:198: ReadTEXTImage: Assertion `exception->signature == ...
2
votes
1answer
4k views

How to convert an image to a 24-bit BMP in commandline?

I'm writing a wrapper Bash script for ARSS to make it easier to use. The program converts images to sounds and vice-versa but it only accepts 24-bit BMP images, which I was only able to produce using ...
0
votes
1answer
691 views

Bulk Resize images in sub directories with Imagemagick

I'm trying to resize all images in a directory and sub directories. I have this script which I got from here: Use mogrify to resize large files while ignoring small ones and adjusted to: identify -...
1
vote
0answers
51 views

How to split an image with offset using ImageMagic? [duplicate]

I planning to print a large map(6400x15360) and I want to split that image to multiple images(1123x794). I found that -crop 1123x794 do that but How I can add offset so it will be easier for me to ...
3
votes
1answer
751 views

Crop and resize image to fit a5 pdf

I have an image (png, size 4288x2848) that I want to fit in a landscape a5 pdf with a 1cm border. I know I can do it with ImageMagick but don't know how.
1
vote
1answer
74 views

What is the highest Format Version of PDF that free software can produce?

I am on Debian Stretch. I made couple of pdf files from img2pdf using $ img2pdf --output sample2.pdf sample.jpg I then tried uploading to a web-service and it rejected the pdf file. Looking at the ...
6
votes
2answers
195 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 ...
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 ...
1
vote
1answer
26 views

Any software to modify within images? Not just things like the size of the image

Lets say I have two jpg files. I want to create a series of images, where I move one of the images across the face of the other image. I can already do this in any number of graphical editors, but it ...
1
vote
0answers
25 views

Monitoring X11/RandR display traffic sent from PC

I'm trying to optimise my display parameters and have run into something of a brick-wall as it doesn't seem that xrandr is able to modify the RGB Broadcast value on my system, or otherwise it does not ...
1
vote
1answer
53 views

How to resize image scan to text content?

I make a script witch scan papers and send it by mail. But in some cases there is a lot of blanc space in the scaned image and I would like to automatically resize image to content. So, for example, ...
1
vote
1answer
199 views

mogrify -monochrome to several Picture

I have some Picture, that I want have in black and white. I'am in the right folder. -rw-r--r-- 1 alex alex 1027 Jan 21 13:07 target-0.jpg -rw-r--r-- 1 alex alex 1001 Jan 21 12:17 target-1.jpg -rw-...
5
votes
1answer
490 views

Tool to automatically extract sub-images that are inside an image: sub-images separated by whitespace

Is there a tool/script which can extract images (save them as separate image files) inside an image, each sub-image is separated by whitespace? This: Would result in 3x: Image Source
0
votes
1answer
48 views

How to detect the offset of one image file in relation to another?

I'm creating an automated system that uses PDF files to drive Blender projects and turn them into 3D visuals. Problem is, Corel Draw generated PDFs that have a varying offset around 4 pixels in the y ...
4
votes
2answers
976 views

How to use 'convert' and 'xargs' together?

I need to convert a bunch of .rgb files into .pngs (each file should retain its original name). I want to find out how to convert the first file and then wrap the command in a 'for' loop. This is ...
2
votes
1answer
1k views

Force GraphicsMagick to resize image to specific width

I'm batch processing a folder of image to a uniform width with GraphicsMagick (though I assume the same would apply to ImageMagick): $ gm convert -resize 1000x in.jpg out.jpg But when I inspect some ...
1
vote
1answer
539 views

batch conversion of tiff stack to individual tiff images

Are there any CLIs that accept a tiff stack as input and write individual tiff images as output, preferably to stdout for piping directly to an image viewer?
3
votes
2answers
759 views

Generating a PDF from images

I have a serie of ten images. I would like to have them stretched to fit 5in squares centered in a single A4 PDF, one image per page. I would need something working on Mac (in case of some local ...
1
vote
0answers
511 views

To Adjust Brightness-Contrast in Plane with Gimp/ImageMagick/…?

This kind of plane is a common tool used to view Rontgen pictures in Radiology. It exists as a standard in many RTG programs in hospitals. I would like to have a similar tool open-source for ...
3
votes
1answer
2k views

ImageMagick: How to thicken lines

I'm trying to thicken lines with imagemagick. There is a description about how to do this here, but when I do it on my sample images they just stay the same or get rather weaker. Examples given from ...
3
votes
1answer
587 views

how to shrink all images, jpg in a directory to another directory using imagemagick

I read Using mogrify (imagemagick) to batch convert all my files (with params) and it seems my query/path is very similar, except the fact that all the pictures in my directory have same Width and ...
0
votes
1answer
38 views

Is conversion between images and a text PDF possible

I have a scanned book as images compressed into a PDF file and I want to keep the book as is, but would like to extract the text from the images, so that it would be possible to select/copy it. Is ...
-1
votes
1answer
160 views

Detect WebP files

I am using Ubuntu and type doesn't seem to work for webp images: bash: type: test.webp: not found How can I discriminate webp images from the command line?
1
vote
0answers
569 views

How can I remove the embedded preview in an EPS file without destroying all metadata?

I have several EPS files data exported from Adobe Illustrator, which apparently embeds a TIFF preview so that the EPS file is previewable. This is undesired, because I use these files in XeLaTeX, ...
3
votes
2answers
82 views

Collate image list with name

How to create a collation of images in the format: image_name_1 [IMAGE#1] image_name_2 [IMAGE#2] image_name_3 [IMAGE#3] ... Using Imagemagick I can say something like: montage -label '%f' -mode ...
2
votes
1answer
197 views

Silhouette from an image

How can I create silhouette from an image in linux using the terminal? By creating silhouette I mean - how do I turn the RGB components values of an RGBA image to #000000, while preserving the alpha ...
3
votes
1answer
1k views

jpegtran - losslessly crop left portion of image

I have a 1400x1400 image in which I want to trim 4 pixels to the left, 1 at the bottom and, to keep square proportions, 3 from the top. The problem is, whenever I perform a crop with jpegtran, pixels ...
1
vote
1answer
2k views

Making concentric circles in GIMP

I have a single layer image that is 480px square, which I am created with GIMP (it is blank). How can I make: Three concentric circles (the center being at 240,240 px) with radii 240, 180, and 60. ...
2
votes
0answers
76 views

Using a web browser to generate a gallery/slideshow from local files

I'm trying to see how far I can go with using a web browser for various tasks vs. native apps. One of these tasks is selecting a group of local image files and generate a preview/gallery/slideshow in ...
5
votes
4answers
325 views

Programmatically determine “uniformity” of image

I'm attempting to write a script which thumbnails our many thousands of assets. The assets use Flash for the most part, and I'm capturing them via chromium-browser on the command line. I pretty much ...
1
vote
1answer
335 views

pdftoppm (v 3.0) very slow to convert thumbnail in newer version

On one of our local servers, I use pdftoppm (v 0.18.4) to capture the first page of a pdf file as a 1200px wide jpg. It's very quick, and works very well. I'm doing it like so: pdftoppm -f 1 -l 1 -...
4
votes
1answer
2k views

Stop ImageMagick from rotating image on append

I took two photos with my phone, one horizontal and one vertical, and they show up fine in Eye of Gnome. When I try to glue them top-to-bottom with ImageMagick's convert: $ convert img1.jpg img2.jpg ...