Jianu Studio

Files & resources · FiveM

Texture Lab

Change the size and format of your images (PNG, WebP or JPG) right in the browser, without uploading them anywhere.

  • PNG
  • WEBP
  • JPG

In short

  1. 01

    Upload a PNG, JPG or WebP image.

  2. 02

    Choose the dimensions and keep the aspect ratio to avoid distortion. You can switch between the fast preview and full resolution.

  3. 03

    Choose the format and download the texture. PNG and WebP keep transparency; JPEG uses a white background.

What you get

PNG, WebP or JPEG up to 4096 px. The preview resolution doesn’t change the export size.

Step by step

01Open an image or a YTD

Drag the file into the middle or press “Choose file”. PNG, JPG and WebP up to 16 MB work, plus YTD dictionaries up to 64 MB. Images larger than 4096 px are scaled down on load.

A YTD opens whole: each texture is a card in the left column, with the thumbnail, size, format and video memory. At the top you see the total, and below it the warnings: textures over 2048 px, sizes that aren’t powers of two, uncompressed textures.

With several images at once, or with “A whole folder”, Texture Lab works in batch: the same settings for all of them, up to 200 images. Pick the “Long side” (smaller images are not enlarged), the format (PNG, WebP, JPG or YTD) and download a ZIP. For YTD you can tick “One YTD with every texture”. Each image in the batch counts as one export.

02Work on the whole dictionary

An image dropped on a card takes its place, with the same name and size; “Replace with an image” does the same. “Add textures” puts new images into the dictionary, and “Remove from the dictionary” takes the chosen texture out (“Restore the texture” brings it back). Changed cards are labelled “modified”, new ones “new”.

“Optimise all” brings every texture to the chosen “Largest side” (1024, 2048 or 4096), to powers of two and to BC1 or BC3, by transparency. You see the memory before and after right away. “All as PNG (ZIP)” exports every texture as an image.

03Look at the texture up close

The magnifiers zoom in and out, “Fit” puts it back in the window, and when zoomed you drag it with the mouse; Ctrl + wheel zooms anywhere. Below it you see the pixel under the cursor: position, colour and alpha.

R, G, B and A show one channel in greyscale (A: white is opaque), handy for spec and normal maps. The half-circle button, held down, shows the texture without adjustments.

04Pick the size

Under “Size” you type the width and height or press 512, 1K, 2K or 4K. With “Aspect ratio locked”, the height follows the width; press it to set them separately. Each texture keeps its own size.

If the size isn’t a power of 2, the tool warns you: the game accepts it, but the mips come out uneven. “Round to” takes you to the nearest good size.

05Adjustments and the normal map

Under “Adjustments” you rotate the texture left or right, flip it and set “Brightness”, “Contrast”, “Saturation” and “Hue”. “No adjustments” clears them all.

Under “Normal map”, “Generate the normal map” turns the chosen texture into its relief map, as a new <name>_n texture in the dictionary. “Depth” sets the relief, and “Green flipped (DirectX, like GTA)” stays ticked for the game.

06Pick the format

For the game you pick a YTD. “YTD · automatic” uses BC1 for opaque textures and BC3 for transparent ones. “YTD · BC1” is the smallest and suits textures without transparency. “YTD · BC3” keeps transparency, good for labels, lace or glass. “YTD · uncompressed” loses nothing but is four to eight times larger.

For editing elsewhere you have PNG, WebP and JPG. JPG puts a white background where the transparency was; for WebP and JPG you also set the “Quality”.

07Write the dictionary back

When you start from a YTD, the export rewrites only the textures you changed, added or removed. The others stay byte for byte as they were, with their compression. The chosen format applies to the open texture; “Same format for all” sets it on every one.

Under “Texture name in the dictionary” you can rename it; the old entry leaves the dictionary. The name has to match the one the model looks for, or the game won’t find the texture any more.

08Download

“Download the dictionary” gives you the YTD, with the source file’s name. “Download the texture” gives you the image. Each download costs 5 credits.

“Preview: fast” shows the image at 1024 px at most, so it stays smooth. The export uses the chosen size either way.

Questions

The texture turned black or pink in game.

The model looks for a different texture name, or the dictionary was renamed. Keep the file name and the texture name as in the source.

The transparent edges came out black.

You picked BC1, which doesn’t keep transparency. Export again with “YTD · BC3”.

Can I rewrite several textures at once?

Yes. Each card keeps its own size, adjustments and format, and “Download the dictionary” writes every changed one into a single YTD.

How much does it cost?

Opening and previewing are free. Each download, image or dictionary, costs 5 credits.

Other tools