[SOLVED] Fixed size sceenshot icons

I want all apps (no matter how big area of desktop is used) to make minimized sceenshoots fixed size.

+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead \ "xwd -silent -id $[w.id] | convert -scale $$(($[w.width]/10)) -frame 1x1 \ -mattecolor black -quality 0 xwd:- png:$[FVWM_TMP]/icon.tmp.$[w.id].png \ && echo Nop"

As far as i understand this makes screenshoot and resizes it 10 smaller then original

Can you plz tell me how to do it?

The tool called “convert” is part of the imagemagick suite.

Just use -resize instead of -scale. Beware that convert, by default, will respect the size ratio of the images. You can override this by just putting a ! in front of the size you want to fix.

Some examples:

$ identify test.jpg 
test.jpg JPEG 1024x768 1024x768+0+0 DirectClass 8-bit 63.9336kb 
$ convert -resize 1000x1000 test.jpg test_1.jpg
# We try to convert to 1000x1000, but that would result in a deformed image
# so, imagemagick try to make us happy while preserving the aspect ratio
$ identify test_1.jpg
test_1.jpg JPEG 1000x750 1000x750+0+0 DirectClass 8-bit 61.9453kb
# Of course, we can override that behaviour, by pre-prending a '!' to any
# or both of width and height
$ convert -resize 1000x\!1000 test.jpg test_2.jpg
$ identify test_2.jpg
test_2.jpg JPEG 1000x1000 1000x1000+0+0 DirectClass 8-bit 73.0137kb

Note how we need to use ! instead of a single !. That is not a convert thing, but a bash one. If we don’t scape the ! character it would be interpreted by bash as anything special, and not a we intended it to be interpreted by convert itself.

With that info, you should have no trouble to modify your thumbnailing function.

Thanks, that did help