Skip to content

Automated DDS and YTD resizing and cropping for GTAV & FiveM files.

License

Notifications You must be signed in to change notification settings

dustinslane/texture_magic

Repository files navigation

Texture Magic

Texture magic is a handy tool to quickly crop and trim textures, scale and compress them to optimized defaults for FiveM and GTAV.

Features

  • ✂️ Automatic cropping and trimming of DDS textures
  • ⚙️ Works on YTD files and DDS files so you don't have to extract the files first!
  • 📐 Automatic rescaling
  • 📐 Supports 1x1 textures and 1x2 textures
  • 🎨 DXT-1 and DXT-5 support
  • 🚀 Multithreaded! Will work on 4 textures at the same time speeding up conversions!

Screenshots

An image of the application.

Example

Before

Before image

After

After image

System Requirements:

✅ Windows 10 or Windows 11, 64 bit operating system required.
❌ Windows 8.1, Windows 7, Linux/Mac or 32-bit not supported.

.NET 8.0 is required. You may already have this installed. If you don't, you can get it here:
https://dotnet.microsoft.com/en-us/download/dotnet/8.0

Disclaimer

This software is distributed free of charge, as-is, without any warranty. May it help you resize textures.

Download

Find the latest release here. Download the ZIP file and extract where convenient. Run the program.

Support me

If you like this program, please support me here so I can dedicate time to projects like this!

Usage

This list will go through the steps, and down the list of things on the screen.

  1. Open the application
  2. Click SELECT FILES. Select the files you want to convert.
    • You MUST only select textures that have the same UV-mapping at a time.
    • Example: only textures for jbib_023.ydd
  3. Decide if you want a background color. It is gray. #1F2020.
  4. Decide if you want a border around your texture. Select one from the dropdown.
  5. (EXPERIMENTAL) You can have the program attempt to rearrange your texture in a more optimized arrangement. This probably won't work but it might?
  6. Decide if the texture is square. Some textures (shoes) won't be.
  7. Set the width you want.
  8. If not square, set the height here.
  9. IMPORTANT: select DXT-1 for textures without transparency. Select DXT-5 for textures with transparency.
  10. Click start!

Credits

Libraries

Application Icon