13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Image conversion?

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP
View previous topic :: View next topic  
Author Message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Tue Feb 20, 2007 7:22 pm    Post subject: Image conversion? Reply with quote

Hi Humpa,

Here's one for ya...At work, I frequently need to take a screenshot of something and can only save it in bmp format. I then need to post that image on the web. Do you know of an easy enough script I can run on my server that will convert from bmp to gif or jpeg? The bmp's are always way too big (in file size)...

I've looked at some modules - dcraw, netpbm, but can't really understand them! I can't use imagemagick because of the exec() function being disabled by my PITA hosts once again Mad

Thanks Smile
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Feb 21, 2007 11:48 pm    Post subject: Reply with quote

Result!

I've managed to figure it out myself. I've got a simple uploader for bmp's and then convert them to jpg & gif. Should anyone want a copy of the code, let me know and I'll post it up. Very Happy
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Feb 21, 2007 11:55 pm    Post subject: Reply with quote

Sorry, I saw your original post but before I could respond or give it any consideration, something else grabbed my attention and I forgot all about it. Sad

The only thing I recall is wondering why you couldn't simply save your screenshots as jpg's.
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Thu Feb 22, 2007 12:36 am    Post subject: Reply with quote

No problem - by not replying, you helped me...By looking around, I feel like I learnt something, y'know?

My screenshots - well, unfortunately I only have Paint on my pc at work Shocked When saving a screen grab using this, I only have the choice of:

Monochrome bitmap
16 colour bitmap
256 colour bitmap
24-bit bitmap
gif

But when saving as a gif, I lose a lot of colour which is no good for my work.

So that's why I had to find a way around things. A guy I work with has Photoshop but it's a pain firing up his pc, logging on, doing what I need to do and powering it down again (he doesn't leave his pc on)...So now I have what I need, it's a lot quicker and easier for me Twisted Evil
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Thu Feb 22, 2007 12:39 am    Post subject: Reply with quote

I see ... I thought everyone had photoshop. Wink
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Thu Feb 22, 2007 12:51 am    Post subject: Reply with quote

Razz

Well, I do at home of course, but in the office there's just the one copy of it...Bad enough trying to get the boss to allow me to install freeware that would benefit my working day, let alone the $$$ for Photoshop Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum