Forums

OverviewV-Play 1 SupportJPEG crashing the game › Reply To: JPEG crashing the game

OverviewV-Play 1 SupportJPEG crashing the game › Reply To: JPEG crashing the game
#4611

Mathias

Thanks for the fast reply. I tried with different kind of images of different resolution, sizes and file names before i found out that the problem was with the file format. I simply tried to replace the images in one of your demos with my jpg image and it would not build any more.

Here is the code I tried to build locally in my Qt Creator on Ubuntu using Desktop as target:

import VPlay 1.0 // for the gaming components
import QtQuick 1.1 // for the Image element
 GameWindow {
     activeScene: scene
     width: 720
     height: 1280
     Scene {
         id: scene
         anchors.fill: parent
         Image {
             id: bg
             anchors.fill: parent
             source: "img/bg1.jpg"
         }
     }
 }

When exchanging the image to bg1.png it works fine. The reason why i would like to use jpg instead of png for some of the art in my game is that the PNG almost three times larger in filesize than corresponding JPG.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support