You are not logged in.

#1 2013-03-17 12:34:12

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

tips resizing .xbm

hi to everybody,

i want to resize an .xbm image.

if i use imagemagick command (convert) i get a resized BUT aliased version
if i use gimp GUI i get a resized AND perfect version

now i want to create a script so:
do you know another program (alternative to imagemagick) ???

thank you


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2013-03-17 13:22:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,445
Website

Re: tips resizing .xbm

imagemagick's convert has an "-antialias" option.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2013-03-17 16:40:18

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: tips resizing .xbm

maybe I didn't explain well myself: yes, the result of resizing is in an aliased image but it's like if convert command couldn't handle bitmap images correctly....
or it's like if convert command, couldn't resize the original bitmap image but a jpg version of it....
i know i can't explain well the problem

http://img829.imageshack.us/img829/4840/untixtled.png

in this image i create an example:
-first is want i get with convert
-second with gimp


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#4 2013-03-17 17:26:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,445
Website

Re: tips resizing .xbm

Are you actually just doubling the size?  If so, a quick script, or about 10 lines of C would do the job.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2013-03-18 20:35:24

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: tips resizing .xbm

I need to resize a 6x6 to 10x10 image


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#6 2013-03-23 09:21:56

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: tips resizing .xbm

upp


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#7 2014-04-07 09:55:26

naeramarth7
Member
Registered: 2014-04-07
Posts: 1

Re: tips resizing .xbm

Might be a bit late, but if anyone's looking for an answer:

convert -size 32x32 -scale 32x32 $SOURCE $DEST

Don't use the -resize option, but set you're target -size and -scale to prevent aliasing.

Offline

#8 2014-05-05 17:51:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: tips resizing .xbm

Closing to avoid further necrobumping..


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB