Search found 13 matches

by etrader
2019-04-09T08:37:49-07:00
Forum: Users
Topic: How to crop by aspect ratio?
Replies: 4
Views: 7479

Re: How to crop by aspect ratio?

It works beautifully.

Anyhow, my version is ImageMagick 7.0.8-34 on Ubuntu.
by etrader
2019-04-09T00:43:44-07:00
Forum: Users
Topic: How to crop by aspect ratio?
Replies: 4
Views: 7479

How to crop by aspect ratio?

For resizing, we can tell IM to resize if an image is larger than a given size. Is it possible for crop (gravity) too? I want to prepare images for instagram, which apparently has limitations for aspect ratio: Landscape: 1.91:1 Portrait: 4:5 Can I tell IM to crop only if the image is beyond these ...
by etrader
2019-01-07T11:20:17-07:00
Forum: Users
Topic: Using GPU acceleration
Replies: 1
Views: 7840

Using GPU acceleration

I have ImageMagick installed on Ubuntu 18.04 from the official repository. The machine has AMD Radeon Vega 64 with AMDGPU driver installed from the official AMD website. I wonder if it is possible to use the GPU for hardware acceleration of convert or mogrify commands? Or I have to compile ...
by etrader
2018-10-02T06:21:29-07:00
Forum: Users
Topic: How to convert SVG with exact size?
Replies: 2
Views: 3242

Re: How to convert SVG with exact size?

Excellent! Works perfectly. Thanks!
by etrader
2018-10-02T05:41:48-07:00
Forum: Users
Topic: How to convert SVG with exact size?
Replies: 2
Views: 3242

How to convert SVG with exact size?

I try to convert a series of SVG files to JPG with the following command

Code: Select all

mogrify -format jpg -size 1920x1080 -resize 1920x1080 *.svg
However, the dimension of the resulting JPG files is 1919x1080. How can I force ImageMagick not to alter 1px?
by etrader
2018-02-20T05:51:56-07:00
Forum: Users
Topic: Convert SVG to PNG
Replies: 1
Views: 2614

Convert SVG to PNG

I try to convert a series of SVG files to PNG with mogrify as mogrify -format png *.svg but the images are cropped to include the visible part only. How can I convert SVG to PNG with the original size? I do not want to use the sizeable feature of the vector. Instead, I just want to maintain the ...
by etrader
2017-10-27T10:25:44-07:00
Forum: Users
Topic: How to resize large files only by mogrify
Replies: 2
Views: 3854

Re: How to resize large files only by mogrify

Oh my bad. Worked perfectly.
by etrader
2017-10-27T09:24:58-07:00
Forum: Users
Topic: How to resize large files only by mogrify
Replies: 2
Views: 3854

How to resize large files only by mogrify

I convert non-jpg files to jpg in a folder with mogrify:

Code: Select all

mogrify -format jpg -flatten images/*.*
I want to resize files, which are larger than 800px in width.

With convert command, the solution is

Code: Select all

-resize 800/>
How can I do this with morigy, which well works with the files in a folder.
by etrader
2017-08-10T10:29:49-07:00
Forum: Users
Topic: How to the get the coordinates of pixels?
Replies: 6
Views: 9315

Re: How to the get the coordinates of pixels?

snibgo wrote: 2017-08-09T11:28:12-07:00 IM version? Platform?
ImageMagick 6.8.9-9
Ubuntu 16.04
by etrader
2017-08-09T10:19:30-07:00
Forum: Users
Topic: How to the get the coordinates of pixels?
Replies: 6
Views: 9315

Re: How to the get the coordinates of pixels?

WOW, it worked like a charm. The key is that my points are not completely black and I have to use gray instead, right?
by etrader
2017-08-09T09:12:35-07:00
Forum: Users
Topic: How to the get the coordinates of pixels?
Replies: 6
Views: 9315

How to the get the coordinates of pixels?

I want to get the coordinates of the points in a line from an image to re-draw it. http://i.imgur.com/xpd2F2A.png I tried convert photo.png txt:- | sed -n 's/^\(.*\):.*black$/\1/p' but it didn't work. I also tried to create white edges as convert photo.png -edge 1 -threshold 0 photo.png convert ...
by etrader
2013-02-27T19:13:01-07:00
Forum: Users
Topic: How does IM convert transparent PNG to PDF?
Replies: 0
Views: 5882

How does IM convert transparent PNG to PDF?

For embedding PNG inside PDF, it is necessary to separate alpha channel. I used IM to convert a transparent PNG to PDF, and the output PDF file contains 8 0 obj << /Type /XObject /Subtype /Image /Name /Im0 /Filter [ /FlateDecode ] /Width 75 /Height 65 /ColorSpace 10 0 R /BitsPerComponent 8 /SMask 15 ...
by etrader
2012-09-29T07:00:47-07:00
Forum: Users
Topic: How to change BoundingBox of EPS?
Replies: 0
Views: 5251

How to change BoundingBox of EPS?

I convert images (e.g. PNG, TIFF, etc) to EPS with convert command. Size in vector images is almost meaningless, but EPS has BoundingBox to set the default image size. ImageMagick set the BoundingBox from the original image size. I want to set a custom BoundingBox for the final EPS file. The ...