You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Compressing Image file - 2009-06-30, 07:14

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Hi all,

I am using a fonts derived from a font image file in my game MIDlet, but now I am porting on lower resolution, and the font size is relatively large and cant fit on the screen, so I want to reduce the image file which is around 2000x12 pixels (W x H), I want to change in into 175x12 (W x H), I used photoshop to change the image size but once changed the characters in the image file becomes unreadable and lose their original shape.

Is there any way in which I can reduce the image file, its a .PNG file.

Looking forward for a swift reply.

Thanks
Reply With Quote

#2 Old Re: Compressing Image file - 2009-06-30, 07:44

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
Quote:
Originally Posted by kai_buki View Post
Hi all,

I am using a fonts derived from a font image file in my game MIDlet, but now I am porting on lower resolution, and the font size is relatively large and cant fit on the screen, so I want to reduce the image file which is around 2000x12 pixels (W x H), I want to change in into 175x12 (W x H), I used photoshop to change the image size but once changed the characters in the image file becomes unreadable and lose their original shape.

Is there any way in which I can reduce the image file, its a .PNG file.

Looking forward for a swift reply.

Thanks
Hi buddy you are making big change in image i.e 2000x12 pixels (W x H), I want to change in into 175x12 (W x H) that's why you are getting problem try to create new image of this screen size .You can try batch image re sizer to resize the image.But i dont think this will be a good choice .You have to create new image for it


Anshu Chauhan
J2me Developer
Reply With Quote

#3 Old Re: Compressing Image file - 2009-06-30, 08:08

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Hi Anshu thanks for the reply,

I have already tried creating a new file in photo shop and choose font size 2 pt, but still when I enter the text they are not in proper shape and are unreadable, I am trying the tool which you just now mentioned.
Thanks
Reply With Quote

#4 Old Re: Compressing Image file - 2009-06-30, 08:14

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
Welcome buddy ...
But tell me what kind of image you have exactly.May be i will help you in creating it.Are you using custom font


Anshu Chauhan
J2me Developer
Reply With Quote

#5 Old Re: Compressing Image file - 2009-06-30, 08:27

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
I can send you the image, but I don't know how to send images or files using nokia forum, if I can get your email ID.
The font used is Tahoma.
the image file contains :
The characters: 26 letters, 10 digits, 12 symbols of !@#$%^&*()+-=/<>?.,:;'

Thanks
Reply With Quote

#6 Old Re: Compressing Image file - 2009-06-30, 08:37

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
ansh.chauhan@gmail.com
tell me one more thing are you using this for custom font


Anshu Chauhan
J2me Developer
Reply With Quote

#7 Old Smile Re: Compressing Image file - 2009-06-30, 08:46

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by kai_buki View Post
Hi all,
but once changed the characters in the image file becomes unreadable and lose their original shape.
Is there any way in which I can reduce the image file, its a .PNG file.
Thanks
Hi,
changing the file of the Font does not means that every thing can work as desired,I guess you must have to change the code a little bit.Are you assigning the single chars height and width.Therefore you have to change the value of these variables.I would suggest that please read the code carefully and then check that what are the other variables those might cause the above issue.


Thanks

R a j - The K e r n e l
Reply With Quote

#8 Old Re: Compressing Image file - 2009-06-30, 08:49

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Yes,

Using it as custom font in the game, I am sending you the image file, please let me know when you get it
Thanks for all the help.
Reply With Quote

#9 Old Re: Compressing Image file - 2009-06-30, 08:57

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Quote:
Originally Posted by raj_J2ME View Post
Hi,
changing the file of the Font does not means that every thing can work as desired,I guess you must have to change the code a little bit.Are you assigning the single chars height and width.Therefore you have to change the value of these variables.I would suggest that please read the code carefully and then check that what are the other variables those might cause the above issue.
I know that code needs to be changed, but the initial problem is that when resizing the image, the characters become unreadable and lose their shape, so even i change in the code, the result I will get will be improper shaped characters. If i get the font character images in good shape only then I can change in the code, correct me if I am doing wrong.

Thanks
Reply With Quote

#10 Old Re: Compressing Image file - 2009-06-30, 09:10

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Hi,
You are not wrong,however what I am saying is that thats issue is not coming due to just the images shapes,rather this is due to the code itself,and I am sure about it.Rather sending the images to others you to get the re-sized images,you can do this by your self,even you can ask this task to you designer.

I would strongly recommend that try to change the code and then have a look.


Thanks

R a j - The K e r n e l
Reply With Quote

#11 Old Re: Compressing Image file - 2009-06-30, 09:17

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Quote:
Originally Posted by raj_J2ME View Post
Hi,
You are not wrong,however what I am saying is that thats issue is not coming due to just the images shapes,rather this is due to the code itself,and I am sure about it.Rather sending the images to others you to get the re-sized images,you can do this by your self,even you can ask this task to you designer.

I would strongly recommend that try to change the code and then have a look.
Raj I know that code needs to be changed but as code is subject to change when the image file is ok.
I tell you what happens which I change the image file if initially the character is "M" it changes to "|" or something like that, and it happens to all characters.

my designer is gone, contacted him and he also not sure how to do.

That is why I am working on resizing the image properly, once that is done then I will changed my code, so that I can get characters in proper shape.

Thanks...
Reply With Quote

#12 Old Re: Compressing Image file - 2009-06-30, 09:22

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
Hi kai_buki
The image you send it to me contain number of character you cant convert it in to 176X12 otherwise your Image will spoiled completely.Better change your code to use the same file .Dont try to change it otherwise you will get in to trouble.You can find custom font there are many example you can get here.

http://j2me-mwt.sourceforge.net/download.html

read this here you can get more help about custom font


Anshu Chauhan
J2me Developer
Reply With Quote

#13 Old Re: Compressing Image file - 2009-06-30, 09:29

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Hi Anushu
Thanks for all the help
I am looking into the link you gave me.
Now try to work on the code to change it, hope I get good results
once again thanks

Take cares
Reply With Quote

#14 Old Re: Compressing Image file - 2009-06-30, 11:33

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
Welcome buddy
if you get any problem in that then you can concern me .because this is working fine for me


Anshu Chauhan
J2me Developer
Reply With Quote

#15 Old Re: Compressing Image file - 2009-07-03, 17:04

Join Date: Jul 2007
Posts: 83
kai_buki
Offline
Regular Contributor
Hi Anshu
Can you please help me in advising how to use that tool:
I want to create a micro font png file
and then want to reduce its size to 175x12
please help me on this
Thanks
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem about using CImageDecoder::FileNewL to open an image file? Casper1314 General Symbian C++ 1 2007-06-13 06:15
Contacts fields order?? timatima General Symbian C++ 1 2007-06-08 14:51
How to Encode image and Music file?? DancingWave Browsing and Mark-ups 0 2007-01-10 02:23
reading image file from server ?? nitrajpal Symbian Networking & Messaging 0 2006-01-30 08:50
open image file Rx-lee General Symbian C++ 3 2004-04-02 04:29

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia