How To Reduce File Size Of Iso File To Upload
License
This tutorial is licensed nether CC By 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.
There are a few tricks you can use to ensure the download size of your projection is equally small as possible. Here'south a few options to look at.
Image formats
By default, Construct two exports everything as PNG-32, regardless of the format of the image y'all originally imported. However any images with under 256 colors automatically become exported as PNG-viii.
Any photographic images, or other detailed images which don't need an blastoff channel, can be set to employ JPEG format instead. JPEG is lossy, just produces far smaller files for these types of images. You tin can set individual images to export as JPEG with the Image format dialog, accessible from the image editor toolbar.
You can also choose a quality value from 0-100 for the JPEG format. Lower quality values produce smaller files, but are more probable to degrade the image appearance with compression artefacts.
For images using an alpha channel, choosing PNG-8 is likewise lossy (possibly degrading the image quality), but can produce smaller files. Construct 2 uses an advanced dithering algorithm to create a PNG-8 file that looks as close as possible to the original, depsite the fact the PNG-8 format can only utilise 256 different colors in one epitome.
The image format dialog allows you lot to choose the image format setting for individual frames, the entire blitheness, the entire object, or the entire project. Be careful when choosing it for the entire project, since it will supervene upon all other settings, including any set to use JPEG.
Utilize depression-resolution images where possible
If the project Sampling property is Linear, and then images stretched up become a soft slightly blurry appearance as information technology smoothly blends betwixt pixels to fill the extra space. You tin have reward of this to make low-contrast images (annihilation which already has a soft or blurry advent) use a smaller source epitome.
For example here is a 320x240 image shown at 100% calibration in the layout:
If the original image is stretched down to half the size (160x120), and so stretched up dorsum to the original size in the layout view with linear sampling, it looks very like:
Hither'due south a side-past-side comparison. There is a subtle difference, just for this type of image information technology's quite hard to spot without looking closely.
This tin can exist taken fifty-fifty further past scaling down by even greater amounts such equally 3x, 4x or more. Since the original image is smaller, its image file will likely exist a lot smaller. As an added bonus information technology will too apply less retention. In this example the 320x240 paradigm exports to a 59.3kb PNG, and the 160x120 epitome exports to 20.3kb, which is a saving of about 66%. A similar percent saving should be seen with even larger images.
Reducing audio size
Think Construct 2 dual-encodes all your audio in to Ogg Vorbis (.ogg) and AAC (.m4a) to support all platforms and browsers. On some platforms, you only need one set of files. Normally Construct two only exports one set of files if the export selection you lot have chosen is known to support that set of files. For instance it only exports the .ogg files and skips the .m4a files when exporting for NW.js since it knows NW.js supports Ogg Vorbis.
If for some reason yous are exporting and take both sets of audio files, but you know you'll only need one of them, then you lot tin delete the other gear up of sound files and salve on the download size. Yous don't need to do this for HTML5 websites, since the browser but downloads files it knows it supports, simply for some platforms you need to provide a zip of all your project files which will all be downloaded.
AAC files (.m4a) are only necessary for Safari (or whatsoever export for iOS) and Net Explorer (or any export for the Windows Shop). Both sets of files are necessary on the spider web in case someone views the game with Safari or Cyberspace Explorer. Even so if y'all are targeting a specific platform information technology's worth double checking that you lot simply have the i necessary ready of sound files.
Recompressing audio can also further reduce the audio file size at the expense of quality. You can also further reduce audio size by downmixing stereo audio to mono. Oftentimes on mobile this is acceptable since few mobile devices accept good enough speakers for low bitrate sound or mono sounds to be noticable. Since Construct 2 has express options for encoding audio, consider using split up specialist audio software to recompress audio files to achieve the best residuum between file size and quality.
Cutting anything you don't need
This can be tricky, but if there are any sound effects, music tracks, or images used that can be removed, this will save them from adding to the download size. Besides any long sound effects or music tracks could be edited to be shorter.
Remember Construct ii nonetheless exports object images and sound files fifty-fifty if yous never use them - so delete annihilation you don't utilize from the project.
Minify and recompress on export
When exporting, be sure to tick Minify script to ensure the resulting Javascript file is as small every bit possible. You lot should also take PNG recompression set to at least Standard, since this makes sure it runs all of Construct 2's export-time optimisations which includes recompressing image files to salve as much space as possible. The Brute manner may salvage another few percent of the download size, but can take an extraordinarily long time to export, and then may be undesirable for that reason.
Construct 2's download size estimate
In the status bar, Construct ii attempts to estimate the download size of the game. This should simply be considered a very crude guess. All the optimisations similar spritesheeting and recompression on consign tin can significantly modify the download size, and the concluding results as well depend on the exact content of the projection. Therefore to exam improvements to your download size, practise not rely on the gauge in the status bar: y'all should really fully export the project and bank check the size of the resulting folder to determine the existent download size, and measure the impact of any changes.
Conclusion
Virtually of a project's download size consists of the paradigm files and sound files. By ensuring images and audio use the best pinch possible yous tin can brand significant savings to your project's download size.
Source: https://www.construct.net/en/tutorials/tips-reduce-download-size-835
Posted by: arnoldshateriere.blogspot.com
0 Response to "How To Reduce File Size Of Iso File To Upload"
Post a Comment