View Single Post
07/31/19, 03:31 AM   #31
rhemik
Join Date: Jul 2019
Posts: 1
converting to dds using ImagickLibrary

Hello,

It's possible to convert all kind of files to dds format that is readable by ESO using ImagickLibrary for example in PHP:

Code:
        $im = new Imagick(); 
	$im->readImage( "sourceFileName.jpg");
	$im->setImageFormat('dds');


	$im->setCompression(imagick::COMPRESSION_DXT5);

	$im->setOption('dds:cluster-fit','false');
	$im->setOption('dds:compression','dxt5');

	$im->setOption('dds:weight-by-alpha','false');
	$name = 'outfilename.dds';
	file_put_contents ($name, $im);
  Reply With Quote