Page 1 of 1

.dds to image with php?

Posted: Thu Apr 19, 2007 12:58 pm
by Mini
Hi I was thinking about making a site with skins for trackmania cars. The idea was to let users upload the vehicle zip wich includes a icon.dss and some other files. The idea was to show this icon on the site as a preview. Wich means you have to convert it to a image type.
Has any1 did this before or knows if it is posseble? And is it hard? ^^

Thanks for replies.

Posted: Thu Apr 19, 2007 1:36 pm
by bert4
Well unzipping is possible, do a search with Google for php unzip, although it may result in file ownership issues, depending on your server configuration.

You need to find out if the icon is actually an ordinary image type, try to change the file extension to jpg, gif or bmp or something, and see if you can use it.

If that doesn't work, you can always ask your users to include a jpg as icon with the upload....