Search found 29 matches

by jmspaggi
2020-04-08T08:53:03-07:00
Forum: Users
Topic: Compare no output
Replies: 5
Views: 1021

Re: Compare no output

Awesome! Thanks a lot again for your help! It all works perfectly.

JMS
by jmspaggi
2020-04-08T07:31:01-07:00
Forum: Users
Topic: Compare no output
Replies: 5
Views: 1021

Re: Compare no output

Thanks for your help snibgo. I'm using version 6 it seems. That's the one shipped with Debian: Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org Copyright: © 1999-2019 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC Modules Ope...
by jmspaggi
2020-04-08T06:01:44-07:00
Forum: Users
Topic: Compare no output
Replies: 5
Views: 1021

Re: Compare no output

Here is the full output of the command: (base) @t460s:~/$ convert -verbose -compare -metric AE 1586348746.png 1586348789.png /dev/null 1586348746.png PNG 1440x2960 1440x2960+0+0 8-bit sRGB 582426B 0.080u 0:00.070 1586348789.png PNG 1440x2960 1440x2960+0+0 8-bit sRGB 599430B 0.060u 0:00.059 158634874...
by jmspaggi
2020-04-08T06:00:06-07:00
Forum: Users
Topic: Compare no output
Replies: 5
Views: 1021

Compare no output

Hi, I'm trying to compare 2 images. From the documentation I should do something like this: convert -compare -metric AE 1586348746.png 1586348789.png output.png The output.png seems to be fine. However, the command doesn't return anything. I can count the red pixels on the output.png file, but from ...
by jmspaggi
2020-03-02T06:05:18-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Looking at what you provided before, I think this might do exactly what I want: convert step2.png -statistic mean 150x150 +write s.png -define identify:locate=maximum info: Where step2.png is the s.png picture from your script... It's like giving a 2nd pass on the same logic and maximizing the surfa...
by jmspaggi
2020-03-02T04:23:47-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Hi, providing a feedback here. I tried many things to remove this ugly background. I realized quickly that scanner with the cover closed was not a solution. Indeed, even if not all brands are giving the same result, there is still a small shadow arround the piece, that is not 100% white and very har...
by jmspaggi
2020-02-26T13:22:21-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

I think I need to re-scan the pictures. The last scanner I used is doing an ugly shadow that causes many issues to detect and remove the white and replace it with transparent. I will re-scan them this week-end and give all of this another try. I will come back to comment on this. This background rem...
by jmspaggi
2020-02-26T12:35:11-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Oh! That super nice and indeed works pretty well! I applied it on 1000 pictures and I found one interesting situation that I'm wondering if there is an optimization for. Here is the source picture: https://i.postimg.cc/ydfMqWy0/clean-2020-02-22-104537-jpg-part-03.png Here is what the script will ext...
by jmspaggi
2020-02-26T06:10:31-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Ok. I think I have been able to apply some nice cleanup to get more background. Here is a cleanup piece: https://i.postimg.cc/XYR8GyfN/ouput.png Here is the new result of your command in a cleaned-up piece: https://i.postimg.cc/W4pMJ6Dv/out.png Even manually I can hardly select a better 100x100 extr...
by jmspaggi
2020-02-26T05:07:02-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Overall result is pretty good, but for some pieces I have more white around and less background and he doesn't target correctly. https://i.postimg.cc/L6nvGhJB/2020-02-22-094921-jpg-part-43.png https://i.postimg.cc/J4f3gxVM/crop-2020-02-22-094921-jpg-part-43.png One solution might be to remove all wh...
by jmspaggi
2020-02-26T04:47:46-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Any idea why I get the output at Gray instead of the 3 channels like you?

Channel maximum locations:
Gray: 6627 (0.101122) 127,238
by jmspaggi
2020-02-26T04:46:03-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Wow! That looks that a very good solution so far! I will apply that on all the pictures and see, but at least on that one the result is very good! Thanks!
by jmspaggi
2020-02-26T03:58:58-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Re: Auto gravity to minimize background?

Thanks. That was my feeling too. I'm not even sure scripting is the best way. Because I will have to generate 160k extract for each picture. That's a lot of files. I might just build a small tool to do just that, to avoid going back to disk.
by jmspaggi
2020-02-25T18:10:59-07:00
Forum: Users
Topic: Auto gravity to minimize background?
Replies: 14
Views: 2493

Auto gravity to minimize background?

Hi, Is there an option to extent a picture and set the gravity to something like "auto" to minimize the background? Consider this picture: https://i.postimg.cc/PxBGGW5Z/2020-02-22-102908-jpg-part-44.png if I run convert file.jpg -background transparent -gravity center -extent 100x100 output.jpg I ge...
by jmspaggi
2020-02-11T18:11:29-07:00
Forum: Users
Topic: Extracting sprites/images from a bigger image
Replies: 17
Views: 3073

Re: Extracting sprites/images from a bigger image

Wow! Seems that I can stop working on it! Seems to be working very well! I tried to reduce the fuzz parameter, to "eat" less of the white piece, but I can see the line that we talked about before. I will check if there is something on the scanner, or on the way I installed the pieces. I will also tr...