User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24

Thread: jpeg compression

  1. #1
    No Products Registered

    Join Date
    May 2007
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jpeg compression

    hey people!

    i got a problem.
    i used an external tile-based map editor to create a .bmp image.
    that .bmp image has 57mb. so i used photoshop to save it as .jpg, and it dropped to 5mb. a good compression ratio i think.

    but, when i import that image to mmf2, in the backdrop obj. it increases the size of the .exe application by 57mb, just the size of the original .bmp file.

    the jpg compression doesn't work with mmf2?

    how could i put several .bmp images in my application without enlarging so much the size of the .exe file?

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: jpeg compression

    MMF2's internal image format is lossless (weak compression though) so if you imported it into MMF2 it will be converted to MMF2's format instead and get a lot bigger.
    What you should do is to add the JPG as an external resource but make it bundled into the exe file and let a background object (or similar object) load the picture at the start of the frame. That way your file will be keps as .jpg and the exe filesize low.

  3. #3
    No Products Registered

    Join Date
    May 2007
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    hum... ok, i put a picture, to load the jpg image

    but in the data elements (where i can see the external files) the path for the image is

    C:\Program files\multimedia fusion2\projects\p1\gfx

    i wonder if its gonna bug in others computers.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    If "p1" is the folder where your EXE will be, use the following code to locate the jpg on any computer:

    Apppath$+"gfx\picture.jpg"

    Apppath$ returns the path of your application.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: jpeg compression

    You can also use appdrive$ + appdir$ + "gfx\picture.jpg".

    appdrive$ gets the drive and appdir$ gets the directory (excluding drive).
    .:::.Joshtek.:::.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    Quote Originally Posted by gamer4fun
    C:\Program files\multimedia fusion2\projects\p1\gfx

    i wonder if its gonna bug in others computers.
    The path displayed in the data element is absolute but when you'll build your application, the path will be relative.
    So it's ok.

  7. #7
    No Products Registered

    Join Date
    May 2007
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    thanks a lot u all!


  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    It's a better idea to use a PNG image, unless your game looks photographic or 3D.
    It will compress better and won't lose any quality.

  9. #9
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    "It will compress better and won't lose any quality."
    PNG loses quality, thats why its not a huge filesize, if it didnt lose quality it would be bitmap BMP. Like with MP3, it stores only what you can see and removes what the human eye cannot see

  10. #10
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: jpeg compression

    PNG is a lossless compression format. JPG does what you're describing there.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. File Compression
    By anticecil in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th July 2010, 11:48 PM
  2. MP3 compression bug
    By Zoglu in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 22nd April 2010, 09:09 AM
  3. [Request] Advanced JPEG Object
    By Dines in forum Extension Development
    Replies: 10
    Last Post: 27th April 2009, 02:27 PM
  4. 7 zip compression?
    By LazyCoder in forum Extension Development
    Replies: 21
    Last Post: 30th April 2007, 11:47 PM
  5. Image compression
    By Bruto in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 30th June 2006, 09:04 PM

Posting Permissions

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