Search found 12867 matches

by snibgo
2020-03-23T01:39:49-07:00
Forum: Users
Topic: resize (bat) script crash
Replies: 8
Views: 324

Re: resize (bat) script crash

The BAT script that you showed cannot fail with that error.

As you are running IM v7, I suggest you use "magick mogrify" instead of just "mogrify". But that won't cure the error you show.
by snibgo
2020-03-22T21:32:45-07:00
Forum: Users
Topic: Extract Clipping Image
Replies: 16
Views: 741

Re: Extract Clipping Image

1) I flattened against "-background Gray". Instead of "Gray", use whatever colour you want, eg "srgba(50%,50%,50%,0.75)".

2) I don't understand your question. Is it a question?
by snibgo
2020-03-22T20:19:29-07:00
Forum: Users
Topic: font rendering
Replies: 12
Views: 348

Re: font rendering

What version of IM? With IM v6.9.9-50, I get a different result: http://snibgo.com/imforums/sml_font1.png I don't suppose Microsoft uses the same open source font rendering software as ImageMagick, so the results will be different. Fonts and font software are not designed to work well without antial...
by snibgo
2020-03-22T11:39:12-07:00
Forum: Users
Topic: resize (bat) script crash
Replies: 8
Views: 324

Re: resize (bat) script crash

How are you running the script?

I suggest you run the script (and any other scripts) by: (1) open a command window, aka command prompt aka console, then (b) type the name of the script and press the return key.

Then you will see any error messages. You can copy-and-paste them here.
by snibgo
2020-03-22T10:12:53-07:00
Forum: Users
Topic: resize (bat) script crash
Replies: 8
Views: 324

Re: resize (bat) script crash

What version of IM?

I suppose you are using Windows, with a BAT script.

Don't use double backslash "\\" in the filename.
omerdor wrote:From what I've been able to see he writes an error that something doesn't exist.
What is the exact error message?
by snibgo
2020-03-22T10:04:32-07:00
Forum: Users
Topic: How to detect defective images automatically (bash script)?
Replies: 6
Views: 268

Re: How to detect defective images automatically (bash script)?

Sorry, I should have said (now corrected) the command I showed is Windows CMD syntax. "!" is a special character to Windows, so I escaped it with "^". For bash, don't escape it.
by snibgo
2020-03-22T06:54:10-07:00
Forum: Users
Topic: How to detect defective images automatically (bash script)?
Replies: 6
Views: 268

Re: How to detect defective images automatically (bash script)?

1. Check whether IM says the file is corrupt. The text is sent to stderr. > magick DSC-0127.jpg info: magick: Premature end of JPEG file `DSC-0127.jpg' @ warning/jpeg.c/JPEGWarningHandler/399. magick: Corrupt JPEG data: premature end of data segment `DSC-0127.jpg' @ warning/jpeg.c/JPEGWarningHandler...
by snibgo
2020-03-21T22:25:54-07:00
Forum: Users
Topic: Help Figuring out why Transparency Isn't Working
Replies: 3
Views: 195

Re: Help Figuring out why Transparency Isn't Working

What version of IM?

I suggest you insert "+write x0.png", "+write x1.png" etc at suitable positions in your command. This will track down where the problem is.
by snibgo
2020-03-20T19:02:02-07:00
Forum: Users
Topic: Extract Clipping Image
Replies: 16
Views: 741

Re: Extract Clipping Image

The input JPEG is CMYK, with an embedded profile. If you want a sRGB output, you should use "-profile" to convert it. After making the non-clipped area transparent, we can flatten against gray: magick 1584707760age.jpg -alpha transparent -clip -alpha opaque -profile sRGB.icc -background Gray -layers...
by snibgo
2020-03-20T16:19:21-07:00
Forum: Users
Topic: How can you add vertical text in batch using the filename.
Replies: 24
Views: 804

Re: How can you add vertical text in batch using the filename.

Robin55 wrote:Here are some more screen shots.
Okay. And ... what? Those show no errors.
by snibgo
2020-03-20T09:39:29-07:00
Forum: Users
Topic: How can you add vertical text in batch using the filename.
Replies: 24
Views: 804

Re: How can you add vertical text in batch using the filename.

That looks better. It isn't showing your Japanese characters properly. I guess you are not using the correct codepage ("chcp" command).

It also doesn't seem to be calling "magick". I don't know why. Scroll further back: what does it say? Please paste your complete script here.
by snibgo
2020-03-20T09:08:06-07:00
Forum: Users
Topic: How can you add vertical text in batch using the filename.
Replies: 24
Views: 804

Re: How can you add vertical text in batch using the filename.

Okay, so you have an error message:
se C=!strNq:~518,1!
The input line is too long
Insert this line at the top of your script:

Code: Select all

setlocal enabledelayedexpansion
by snibgo
2020-03-20T08:39:41-07:00
Forum: Users
Topic: How can you add vertical text in batch using the filename.
Replies: 24
Views: 804

Re: How can you add vertical text in batch using the filename.

Robin55 wrote:Still not working I'm afraid smibgo
How do you know it isn't working? What is it doing, or not doing, that make you say "still not working"?

You can scroll the window up to read what is written. Are there any error messages? If so, what are they?
by snibgo
2020-03-20T07:48:22-07:00
Forum: Users
Topic: How can you add vertical text in batch using the filename.
Replies: 24
Views: 804

Re: How can you add vertical text in batch using the filename.

I suggest you run the script (and any other scripts) by: (1) open a command window, aka command prompt aka console, then (b) type the name of the script and press the return key.