.dds to image with php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Mini
Forum Newbie
Posts: 23
Joined: Mon Dec 04, 2006 4:39 am
Location: Netherlands

.dds to image with php?

Post 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.
User avatar
bert4
Forum Newbie
Posts: 18
Joined: Wed Apr 18, 2007 9:44 am
Location: Bali, Indonesia

Post 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....
Post Reply