TGA Support? TGA Support?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

TGA Support?

Started by seanw, January 01, 2006, 08:43:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seanw

Hey guys, I've done a bit of searching and couldn't find anything detailed about TGA support.  Obviously TGA cannot be displayed on a webpage, but I want to be able to upload, and create jpg thumbnails with the ability to download the original TGA.  I can do this with Gallery2 right now, but it looks like there is better integration support with Coppermine (phpBB, etc).

So, can someone point me to a thread I haven't seen yet, or tell me how it's possible with Coppermine?  FYI, all I had to do with Gallery2 was add a mime type to a database table... ImageMagick supports TGA, so Gallery2 was able to run with it...  hoping it's something just as simple with Coppermine.  :)

Thanks!!
-Sean


Nibbler

Actually, it's going to be harder than that as TGA isn't supported by getimagesize(). It's going to need a hack.

seanw

Hehe... yeah, I was just messing around with that plugin.  Sure enough, the file is uploaded now, but that's all it can do with it.  It won't place it into an album, I'm assuming because of the getimagesize() problem you mentioned.  Well, bummer.  :(

kegobeer

Try making it a document filetype instead - then it'll be added to the album.  You can make your own jpeg thumbnails (prefix them with thumb_), FTP them to the same location, and then you'll have a thumbnail to go along with the file.

Example: jimmy.tga
thumb_jimmy.jpg
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

seanw

The problem with manually making the thumbs is that I'm opening this up to the world to submit files (see www.wowtextures.com).  I'm trying to make it as easy as possible for the users, so I don't want to ask them to make thumbs or have them wait on me to make thumbs. 

If I only had more time, I'd look into working up a hack to make it work... i love writing code, I just don't have time to do everything I wanna do.  heheh... Dangol 24 hours.  Oh well, thanks anyway guys... I'll keep an eye out for TGA support (or hack) in the future.  :)

kegobeer

It's not something Coppermine has any control over - image manipulation is left to PHP and GD/ImageMagick.  If it can't be done, then Coppermine can't do anything about it.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

Actually it's the other way around. IM can create the thumbs but Coppermine has no mechanism to allow it to. I'll see if I can come up with a hack.

kegobeer

If there's no native function in PHP to recognize that filetype, then there's a lot of code needed to make it work.  If you need a hand, let me know.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

seanw

Man you guys are on the ball with replying - kudos to you!  And thanks in advance for anything you come up with, it's very much appreciated!