Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any way to export a lot of pictures from *.jpg to *.dds
#9
(06-11-2024, 12:24 PM)misha.physics Wrote: Thanks, I've tried ImageMagick a lot before started this thread. The problem with IM is that it converts my JPG to

DDS differently than GIMP.

For now XnConvert is the best way, but it gives DXT5 compression instead of DXT1 for a DDS.

It is a shame that IM does not give a result.

For a DXT1 format then back to Gimp, and BIMP but it is hedged with ifs and buts...
This is the "shell" plugin I use with BIMP, I am no coder so it is very basic.
Unzip the attached and put for_bimp.py in your plugins folder
Starting BIMP it looks like this:

   

(1) Is the folder of jpg's
(2) The is the "Other Gimp procedure" option when you click on "Add" 
(3) Search for bimp and Ok it.
(4) Set a "scrap" folder. BIMP will write jpegs there regardless. You can clean up afterwards.

Now for the if-n-buts
The plugin will write .dds files in DXT1 format but the filename is in the form name.jpg.dds Easy for me in linux to bulk rename and get rid of the .jpg bit. I do not know about Windows.
The plugin writes the .dds files to your User folder C:\Users\your_id\   Recover them from there.  Very tedious but maybe better than one-at-a-time

If you want to change the parameters, then look up file_dds_save in Help -> Procedure browser and compare with the line in the plugin.
Code:
db.file_dds_save (timg, tdrawable, outname, outname, 1, 0,0,0,0,0,0,0,0,2.2,0,0,127.0)


Attached Files
.zip   for-bimp.zip (Size: 425 bytes / Downloads: 155)
Reply


Messages In This Thread
RE: Any way to export a lot of pictures from *.jpg to *.dds - by rich2005 - 06-11-2024, 08:11 PM

Forum Jump: