Convert gif to picture message

Convert gif to picture message SearchSearch
Author Message
songul yeda
Unregistered guest
Posted on Friday, January 30, 2004 - 08:57 am:   

hi, i want to convert .gif files to picture messages for nokia phones, i have a source code that converts nol to hex, so i want to modify this code. i think i have to change header part,does anybody have any idea? thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1779
Registered: 10-2002
Posted on Monday, February 02, 2004 - 08:16 pm:   

Most newer colour phones will handle GIF and JPEG directly (but you need to send these images via WAP Push or MMS), so no conversion is necessary.

ImageMagick (www.imagemagick.org) can convert to the Nokia OTA Bitmap format which is used by Nokia Smart Messaging.

I am off-line at the moment (this message will post to the forum when I go back on-line later today), otherwise I'd try to point you to some other threads on this discussion forum. But if you search here on a keyword of ImageMagick, you should find some other information. There is also a web site that is good for quick on-line conversions, but I can't remember the address ... if you search this forum on a keyword of WBMP, you should be able to find the link. (WBMP is a monochrome bitmap format used in WAP ... the on-line converter that I am thinking of supports conversions to both WBMP and Nokia OTA Bitmap format, that's why I think the WBMP search will turn up a link.)

-bn
Anonymous
 
Posted on Monday, February 09, 2004 - 10:05 am:   

can i use gif2nol converters for converting gifs to nol ( then i will convert nol to hex and use it to send as a picture message (i have to use these steps)).
when i use a gif2nol converter, first it says that it doesnt support gif89a format, so i found a gif89a to gif87a converter, then it says 'Wrong dimension of GIF-file!'. The gif file i am using is 72*28. why cant i use 72*28 files? Is nol format is only for 72*14 files?
please help.
Anonymous
 
Posted on Wednesday, March 10, 2004 - 01:25 pm:   

Hi.
I know how to encode images (gif, jpeg) to nokia pictures in Nokia Smart Messaging.
If you want, please send me an email.
I wrote it only in php, it use gd library.

DARO
admin@statsms.net
pallav
Unregistered guest
Posted on Thursday, March 25, 2004 - 10:47 am:   

hi i want code for converting .gif,.jpeg,.bmp to ota format so that i can send them as picture sms via at commands. is anybody have code for that.
Joseh Adrian
Unregistered guest
Posted on Wednesday, May 26, 2004 - 04:59 pm:   

Hi, It's really interesting that newer phones can handle GIF and JPEG directly, so I have a Question...
Can we just bypass the process of sending the file via MMS?
I have the NOKIA 3300, so I have the USB cable to connect the phone directly to my PC, I did tansfered some GIFs, in different resolutions and bithdepth, 8bit, 12 bit, 24 bit, 128x128, 96x96, etc, but when I try to open it with my cellphone It says: "File Not Supported"...

Now, is there any "special" Nokia Image file format?

Bye
pavan
Unregistered guest
Posted on Thursday, June 17, 2004 - 03:29 am:   

Anonymous
 
Posted on Monday, June 28, 2004 - 10:04 am:   

Hi,
I have to implement a .NET webservice which generates an NokiaPictureMessage an send it (http-post) to an SMS-Gateway(in hex format).
I would like to send a Message and a picture, which were generated dynamicly. So my questions are

--> when I have Text an a picture in bmp-format, how can I match this.(I think there should be some headerinfos for what's text an what's picture)
--> Does anybody knows a component which can convert Text an Picture to this Nokia Picture Message (running in .NET)

--> does anybody know where to get developpersupport for similar questions.

thanks a lot for help
cbo
viraldalal
Unregistered guest
Posted on Friday, July 09, 2004 - 03:34 pm:   

hi there i have nokia 3530 and i want to make picture message for it so where can i upload those picture message so i can download it thru my gprs fone if there any free sites for it
Anonymous
 
Posted on Sunday, July 25, 2004 - 07:40 am:   

Require code to send a logo to my Cell through OTA. What is the way out? If anybody know about this topic kindly respond.
FRANK
Unregistered guest
Posted on Sunday, September 26, 2004 - 11:32 pm:   

MMS JPEG-format problem with imageCreatefromJPEG()

Hey there,

I'm having a problem with imagecreatefromjpeg().
I use it in a script that uploads a jpeg-file.

It looks like this:

I use a form-element called ‘image’:
<input type="file" name="image" accept="image/jpeg" onChange="show_img();">

After the post I create a JPEG as following:
$source = imageCreateFromJPEG($image);

Everything works fine with all jpeg’s I use. Except for the jpegs created with my new cellular phone with camera, a Nokia 6220.

I get the following error_message:
Warning: imagecreatefromjpeg(): '/tmp/phpsMUny9' is not a valid JPEG file in /srv/oakdesi2/www/photo.oak.nl/engine/Admin/incs/image_resize_function.php on line 8

I understand this has everything to do with some kind of other JPEG formatting that Nokia uses.
Does anybody has had the same problem or knows where it’s exactly caused by and knows a workaround for the problem.

I included a sample file from my phone, which imageCreateFromJPEG() can’t handle.

Thanks!!
Anonymous
 
Posted on Saturday, October 30, 2004 - 01:07 am:   

hi, can someone tell me how to send a picture from my pc to my cell phone? i have tmobile
thanks
g
Anonymous
 
Posted on Monday, November 01, 2004 - 08:14 pm:   

Dear friends!
Hi all, would you mind tell me how can I create pictures for my Nokia (3310 - the oldest phone on the world!!!!)?
I want to creat my own picture messages and wall-papers.
Thank you so much and best wishes!
Hani
Anonymous
 
Posted on Saturday, January 15, 2005 - 04:50 pm:   

I got the same problem asjoseh Adrian--sum1 help--its mesd up
tniramai
Unregistered guest
Posted on Tuesday, January 25, 2005 - 02:43 pm:   

Hello,
Some one know how to convert binary as below to HEX in ASP code?
Thank :-)

GIF89aH??,H????í‹£?T??nÃ�¼??Õ‡?T骐 €ºÂ ? ??-?Ø…o??�?AKD&|2c?uh1-?Ó’???w?z{?î¢ £VÙ®???Ö‚×—?esØ—g槴7?Bà ¸§?Xǹi?%?b?X??)醘W 5Gȴؤ??????;L\?R;
Roberto.Mabini
New member
Username: Robert_mabini

Post Number: 1
Registered: 05-2005
Posted on Wednesday, May 25, 2005 - 08:09 am:   

hi, first off all like to thank you for your time answering our question. My question is "Is it posible to convert GIF format to Ota by a SMS ","Pls can you give some source code ", "I'am using Linux Platform" Thank You
Darek Chorazewicz
New member
Username: Daro

Post Number: 33
Registered: 03-2004
Posted on Thursday, June 02, 2005 - 11:56 pm:   

Hi.
Please, try our ota on-line converter http://converter.statsms.net

DARO
Anonymous
 
Posted on Tuesday, June 14, 2005 - 08:32 am:   

Send me a JPEG to MMS convertion source codes
Anonymous
 
Posted on Friday, June 24, 2005 - 07:22 am:   

Hi
I wrote a program for convert images to *.ota... email me to send you this program...
This program wrote in .NET technology so, you need to install .NET Framework on your system.

My email: alireza_cp@yahoo.com

Alireza
Anonymous
 
Posted on Friday, June 24, 2005 - 07:25 am:   

Hi
I wrote a program for convert images to *.ota... email me to send you this program...
This program wrote in .NET technology so, you need to install .NET Framework on your system.

My email: alireza_cp@yahoo.com

Alireza
Anonymous
 
Posted on Friday, June 24, 2005 - 07:30 am:   

Hi
I wrote a program for convert images to *.ota... This program wrote in .NET technology so, you need to install .NET Framework on your system.

Alireza
application/octet-streamOTA Convertor
OTA_convert.exe (24.6 k)
Anonymous
 
Posted on Sunday, July 10, 2005 - 03:31 pm:   

Hi
Check this link:
http://www.codeproject.com/useritems/OTA_Converter.asp
I put it here, with source code...

GOODLUCK
Anonymous
 
Posted on Thursday, August 11, 2005 - 09:10 am:   

I want to know a software that converts jpg/gif image to picture sms which can be seen in nokia-3315 model.
YogeshGoel
New member
Username: Yogeshgoel

Post Number: 3
Registered: 09-2005
Posted on Monday, October 03, 2005 - 09:10 am:   

hi,
can anybody provide me the converter for jpg or gif to Hex for sending it as EMS.
Anonymous
 
Posted on Monday, October 17, 2005 - 02:11 pm:   

hi,
can anybody provide me the sourcecode for converting .gif,.jpeg,.bmp to WBMP format so that i can connect via WAP from my mobile phone. is anybody have code for that.
sara
Unregistered guest
Posted on Saturday, October 22, 2005 - 05:57 am:   

hi
I want a software that can change gif&jpeg file to ota file for sms.
Steve H
Unregistered guest
Posted on Wednesday, October 26, 2005 - 10:07 pm:   

I love my E720. Everything works fine. However I have an SMS icon on both displays but when I go to my inbox there isn't any message. If I then receive a message and it's the only one in the inbox the phone reports 2 messages. I have tried everything from a SIM clear to removing the battery for 12 hours. Any ideas please very much appreciated
mohammad
Unregistered guest
Posted on Saturday, October 29, 2005 - 06:37 pm:   

pic
amir abo ali
Unregistered guest
Posted on Monday, November 07, 2005 - 08:01 pm:   

can any one tell me about a programm like ACD to open OTA fills to show it in pc befor i make install in mobil i have nokia 7610
my email is asala_126@yahoo.com
Anonymous
 
Posted on Tuesday, November 29, 2005 - 12:59 pm:   

plz send me ur ota picture collecios to kishan_salman@yahoo.com plz plz send me all ur picture messages thnxzz
whatever
Unregistered guest
Posted on Friday, February 24, 2006 - 05:37 am:   

fantastic. not a single usable answer. well done, all
whatever
Unregistered guest
Posted on Friday, February 24, 2006 - 05:40 am:   

so, here's the deal:
http://studio.webbyland.com/MagickStudio/scripts/MagickStudio.cgi
upload your image
then convert to *.obt via the output option at the top of the page and it *should* work. the thing is, it doesn't ;) all my bytes come back empty, i.e. FFFFFFFFFFFs allt the way ... ;O(
if anybody can work out WHY, let me know.
Anonymous
 
Posted on Monday, March 13, 2006 - 11:12 am:   

can you help me to create picture message and sent through bluetooth.Or tell me about the site to download picture message.thankyou.
MONCY
moncykuttan@yahoo.com
Khan
Unregistered guest
Posted on Wednesday, April 19, 2006 - 09:04 am:   

Can any one send me a OTA convertor for jpg, bmp or gif to a picture *.OTA format

Thanks a lot if u send it to me
Anonymous
 
Posted on Friday, May 19, 2006 - 10:12 pm:   

the source code converting bmp to ota is given below,

/*
* Trevor's quick & dirty hack to convert from BMP to OTA.
*
* Copyright (C) 2003 Trevor Man
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <stdio.h>

inline unsigned long get_long(FILE *fp);
inline unsigned int get_short(FILE *fp);

int main(int argc, char *argv[])
{
FILE *fp_in;
FILE *fp_out = NULL;
unsigned long file_size;
unsigned long offset;
unsigned long temp_long;
unsigned int temp_short;
unsigned long bitmap_width;
unsigned long bitmap_height;
unsigned int bitmap_planes;
unsigned int bitmap_bitcount;
int count;
int padding_count;

if (argc != 3 && argc != 4) {
fprintf(stderr, "Usage: %s bmp_file ota_file [reverse]\n", argv[0]);
return -1;
}

if ((fp_in = fopen(argv[1], "rb")) == NULL) {
fprintf(stderr, "Unable to open %s for reading.\n", argv[1]);
return -1;
}

if ((fp_out = fopen(argv[2], "wb")) == NULL) {
fprintf(stderr, "Unable to open %s for writing.\n", argv[2]);
return -1;
}

fseek(fp_in, 0, SEEK_END);
file_size = ftell(fp_in);
fseek(fp_in, 0, SEEK_SET);

if (get_short(fp_in) != 0x4D42) { // Check for BM
fprintf(stderr, "ERROR: BM signature not found.\n");
return -1;
}

if ((temp_long = get_long(fp_in)) != file_size) {
fprintf(stderr, "WARNING: Header file size (%ld) and real file size (%ld) differ.\n", temp_long, file_size);
}

if ((temp_short = get_short(fp_in)) != 0) { // Check that reserved1 == 0
fprintf(stderr, "WARNING: Reserved1 (%X) field != 0\n", temp_short);
}
if ((temp_short = get_short(fp_in)) != 0) { // Check that reserved2 == 0
fprintf(stderr, "WARNING: Reserved2 (%X) field != 0\n", temp_short);
}

offset = get_long(fp_in);

if ((temp_long = get_long(fp_in)) != 40) { // Check that sizeof(BITMAPINFOHEADER) == 40
fprintf(stderr, "WARNING: sizeof(BITMAPINFOHEADER) (%ld) != 40\n", temp_long);
}

if ((bitmap_width = get_long(fp_in)) != 72) { // Check that width == 72
fprintf(stderr, "ERROR: Invalid width (%ld). Must be 72.\n", bitmap_width);
return -1;
}

if ((bitmap_height = get_long(fp_in)) != 28) { // Check that height == 28
fprintf(stderr, "ERROR: Invalid height (%ld). Must be 28.\n", bitmap_height);
return -1;
}

if ((bitmap_planes = get_short(fp_in)) != 1) { // Check that planes == 1
fprintf(stderr, "ERROR: Invalid planes (%d). Must be 1.\n", bitmap_planes);
return -1;
}

if ((bitmap_bitcount = get_short(fp_in)) != 1) { // Check that bitcount == 1
fprintf(stderr, "ERROR: Invalid bitcount (%d). Must be 1.\n", bitmap_bitcount);
return -1;
}

if ((temp_long = get_long(fp_in)) != 0) { // Check that compression is turned off
fprintf(stderr, "ERROR: Must be uncompressed BMP.\n");
return -1;
}

fseek(fp_in, offset, SEEK_SET); // Skip to bitmap data

fputc(0x00, fp_out);
fputc(bitmap_width, fp_out);
fputc(bitmap_height, fp_out);
fputc(bitmap_bitcount, fp_out);

fseek(fp_out, 4 + ((bitmap_width / 8) * (bitmap_height - 1)), SEEK_SET);
for (count = 0; count < (bitmap_height * bitmap_width); count += 8) {
temp_short = fgetc(fp_in);

if (argc == 4)
temp_short = ~temp_short;

fprintf(stdout, "%c%c%c%c%c%c%c%c", temp_short & 0x80 ? '#' : ' ',
temp_short & 0x40 ? '#' : ' ',
temp_short & 0x20 ? '#' : ' ',
temp_short & 0x10 ? '#' : ' ',
temp_short & 0x08 ? '#' : ' ',
temp_short & 0x04 ? '#' : ' ',
temp_short & 0x02 ? '#' : ' ',
temp_short & 0x01 ? '#' : ' ');
if (fp_out)
fputc(temp_short, fp_out);
if ((count > 0) && ((count + 8) % bitmap_width == 0)) {
fprintf(stdout, "\n");
for (padding_count = 0; padding_count < (4 - (bitmap_width / 8) % 4); padding_count++) {
fgetc(fp_in);
}
fseek(fp_out, 4 + ((bitmap_width / 8) * (bitmap_height - ((count + 8) / bitmap_width) - 1)), SEEK_SET);
}
}

fclose(fp_in);
if (fp_out)
fclose(fp_out);

return 0;
}

inline unsigned long get_long(FILE *fp)
{
return fgetc(fp) | fgetc(fp) << 8 | fgetc(fp) << 16 | fgetc(fp) << 24;
}

inline unsigned int get_short(FILE *fp)
{
return fgetc(fp) | fgetc(fp) << 8;
}



Do tell me if it helps u or not, Mail me at mjsfunda@yahoo.com
text/plain
Source Code.txt (5.2 k)