Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] imagemagick - verpixelt skalieren (vergössern)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Sat Dec 05, 2015 11:46 pm    Post subject: [gelöst] imagemagick - verpixelt skalieren (vergössern) Reply with quote

Hi,

ich habe ein paar Grafiken aus alten DOS-Spielen und möchte diese per Script verarbeiten. Die Grafiken sind sehr klein und sollen erstmal von ca. 90x70 auf 320x240 vergrössert werden.

Hier sind zwei Bilder:

Verpixelt:
http://fs5.directupload.net/images/151206/ahvu6xaj.png

"Smooth":
http://fs5.directupload.net/images/151206/7hlhkuzn.png

Wenn ich mit
Code:
convert input.png -resize 400% output.png

ein Bild vergössere, dann wird es "smooth".

Nehme ich Kolourpaint und wähle dort nur skalieren, dann wird es verpixelt.
Ich möchte genau das verpixelte. Bei 400% wird alles einfach nur vierfach grösser und nicht weiter verändert.

Lässt sich das mit imagemagick auch so machen, wenn ja wie?

Schonmal Danke im Voraus,
Nils
_________________
1 ha == 1 Hekto-Ar == 1 Hektar


Last edited by doedel on Mon Dec 07, 2015 3:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Sun Dec 06, 2015 12:36 am    Post subject: Reply with quote

Aus der Dokumentation von convert:

http://www.imagemagick.org/script/command-line-options.php#antialias

Bye
Py
Back to top
View user's profile Send private message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Mon Dec 07, 2015 1:02 pm    Post subject: Reply with quote

Ich musste nach einigen Erfolglosen Versuchen festellen, dass +anti-alias/-anti-alias nur für Texte und Linien verfügbar sind.

Damit als Grundlage für die Suche kam ich auf -scale, was ich eigentlich auch schon beim Manpage lesen entdecken hätte können...

Ein Weg, das mit Imagemagick zu machen wäre:

Code:

convert -scale 400% input.bmp output.bmp


Vielen Dank für deine Hilfe!
_________________
1 ha == 1 Hekto-Ar == 1 Hektar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum