Need your help about DDS format

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
Gurren Lagann
Posts: 434
Joined: 31.01.2018
Age: 18
With us: 6 years 10 months
Location: State of Rio de Janeiro, Brazil

Post #1by Gurren Lagann » 24.07.2018, 23:07

paint.net
"The tomorrow we're trying to reach is not a tomorrow you had decided on!"
- Simon the Digger
"Nothing is impossible for me, as long I'm determinated to keep moving forward!"
"If other people aren't going to do it, I'm going to do it myself!"
- Me (Gurren)

Current major projects:
- Aur Cir
- Cel+
- Project Sisyphus
- Populating the Local Group
- An galaxy generator

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #2by selden » 25.07.2018, 14:12

I like to use the command-line package ImageMagick to convert image formats and sizes since its results are reproducible and can be scripted.
e.g.

convert -format dds -define dds:compression=dxt1 input.jpg output.dds

translates input.jpg to output.dds using dxt1 compression.

It also can crop and extract pieces of an image:

convert -crop 512x512+0+0 input.png output.png

extracts a 512x512 portion from the image input.png starting at an offset of 0,0 and writes it to output.png

There are many tutorials available on the Web which describe how to use ImageMagick to manipulate images.
Selden


Return to “Add-on development”