Search found 8 matches

by squadjot
2017-10-29T09:23:59-07:00
Forum: Bugs
Topic: invalid json output with -verbose
Replies: 1
Views: 3952

Re: invalid json output with -verbose

Oops, i was using and older version of convert, i think the output is different now, it doesent contain the filepath anymore with v7.0.7-8
by squadjot
2017-10-29T09:15:53-07:00
Forum: Bugs
Topic: invalid json output with -verbose
Replies: 1
Views: 3952

invalid json output with -verbose

Outputting to json using the commandline with the -verbose option creates invalid json. convert -verbose mypic.jpg json:- Reason is that backslashes has to be escaped with (double backslash), so it breaks at the filepaths Incorrect: { name: "c:\some dir\myfile.mp4" } Correct : {name: "c:\\some dir ...
by squadjot
2017-10-29T05:36:20-07:00
Forum: Users
Topic: Can identify.exe output json or xml?
Replies: 2
Views: 3787

Re: Can identify.exe output json or xml?

Thanks alot! :)
by squadjot
2017-10-29T04:56:03-07:00
Forum: Users
Topic: Can identify.exe output json or xml?
Replies: 2
Views: 3787

Can identify.exe output json or xml?

Hi

Can identify.exe output json or xml or something else slightly easier to parse ?

Thanks
by squadjot
2016-10-09T14:47:33-07:00
Forum: Users
Topic: How to "best fit" (crop/resize)
Replies: 8
Views: 20230

Re: How to "best fit" (crop/resize)

Using quotes worked

Code: Select all

convert %1 -resize "280x400^" -gravity center -extent 280x400 -quality 90 converted.jpg
Both a single ^ and double ^^ worked

Thanks alot!, i would never have figured that out myself 8)
by squadjot
2016-10-07T15:36:10-07:00
Forum: Users
Topic: How to "best fit" (crop/resize)
Replies: 8
Views: 20230

Re: How to "best fit" (crop/resize)

I can not get it to work :/

My bat file contains following:

Code: Select all

convert %1 -resize 280x400^^ -gravity center -extent 280x400 -quality 90 converted.jpg
And this is what i get:
Image
by squadjot
2016-10-07T10:44:24-07:00
Forum: Users
Topic: How to "best fit" (crop/resize)
Replies: 8
Views: 20230

Re: How to "best fit" (crop/resize)

fmw42 wrote: CROP:

Code: Select all

convert A_original.jpg -resize 280x400^ -gravity center -extent 280x400 -quality 90 converted.jpg
I'll try this, thanks!
by squadjot
2016-10-07T07:06:43-07:00
Forum: Users
Topic: How to "best fit" (crop/resize)
Replies: 8
Views: 20230

How to "best fit" (crop/resize)

Hi all! i'd like to crop images to fit a certain size (filling the format with the image) To illustrate what i want i created the desired effect in HTML/CSS http://edweb.dk/Temp/crop.html As you can see the image is centered and filling the container, the rest is cropped away. How to achieve this ...