JPD Posted February 21, 2006 Report Posted February 21, 2006 In the future version of PTE, we will have the choice between PNG and BMP 32 bits for semi-transparency images.I did some tests in order to see which format is more interesting :For photographies, PNG is smaller and the PGN zip is also smaller than a BMP zipped (BMP is 230% bigger and 150% bigger when zipped for the tests I did)For titles and draws, the BMP files, in my tests were 680% bigger than the sames files in PNG, but when both were zipped, the BMP is smaller than the PNG ! (-35%)Generally, what we need is to have the smallest file for the net and we zip our files, on the hard disk it's not very important to have 10 or 20 Mo, so I think that for title were we need semi-transparency, BMP 32 bits will be better than PNG.Another important point : the 32 bits BMP files are very quick to be calculated by the actual PTE and it will be probably the same in the next version. Igor wrote somewhere that for PNG it will be necessary to have enough time. It's a second reason to use the BMP format for titles, draw, map which need transparency.I did a little slideshow using only 32 bits BMP in order to see what we can do with this file and to see that PTE is very quick with them. It's here and talk about Igor's camera :-)))You'll find here the avi file, it's of course quicker than the exe file, but it is an unusually use of PTE, it's only a test of BMP files with PTE. Quote
JPD Posted February 22, 2006 Author Report Posted February 22, 2006 JPEG vs. PNG will also be an interesting benchmark I also did some test about JPG :On a photo take by Hubble : 3761 x 2821 pixels.JPG Q=9 (Photoshop) : 1864 Ko, 1852 Ko when zippedJPG Q=12 (Photoshop) : 4577 Ko, 4447 Ko when zippedPNG (24bits Photoshop with transparency) : 17560 Ko, 17560 Ko when zippedBMP 32 bits with transparency : 41445Ko, 26360 Ko when zippedOn a draw (Diapositif's logo) : 400 x 400 :JPG Q=9 (Photoshop) : 48 473 bytes, 34 227 bytes when zippedJPG Q=12 (Photoshop) : 87 826 bytes, 70 683 bytes when zippedPNG (24bits Photoshop with transparency) : 93 237 bytes, 92 688 bytes when zippedBMP 32 bits with transparency : 640 054 bytes, 68 970 bytes when zippedBut it's difficult to compare JPG VS PNG, it's not at all the same thing, and with JPG, it depend of the picture and also of the tool (Photoshop is smaller in web function, and isn't always the best tool)I guess the aspack compression % is relative to the graphics file format used. Aspasck doesn't compress sound's and picture's files it's the reason for which the test with zip is right (it's a bit better with winrar).Aspack is used for the program and maybe the data (I am not at all sure for the datas).The only thing that I don't understand is why the number of Ko for datas in the exe file is bigger than the PTE file, it's the reason for which I am not at all sure.For instance, in the slideshow about Hubble, The exe file is 22 650 110 bytes :- 254 996 bytes for the PTE's program ( only ! )- 19 458 328 bytes for Pictures and sound (and some informations about them)- 2 936 786 bytes for PTE datas and the crcThe PTE file is 2 579 233 bytes, smaller than it is in the exe file, and if I zip the PTE file it's only 43 013 bytes ! I never had any explanation about that. Perhaps Igor can answer.NB When I zip the exe file the size is 10 879 186 bytesZip reduce of 11495 Ko, 11485 Ko for pictures and sound, only 10 Ko for program and datas (that mean that datas seams to be compress, it's another reason for which I don't understand) Quote
Igor Posted February 22, 2006 Report Posted February 22, 2006 JPDYou're right, maybe it will more fast for loading of slides to add BMP32 and compress all EXE to ZIP archive. Overall file size will be maybe smaller that EXE with PNGs.By the way, in case of simple text label with shadow (787x152) it has 45 KB in PNG format and 467 KB in BMP32 and 42 KB in ZIP archive with BMP32.p.s. concerning EXE file size of that slide-show.36 images - 18 821 19 bytes3 sound files - 11 451 046 bytes1 project file - 38 565Total: 30 311 230 bytesFinal EXE file with (PTE engine - 254 464 bytes) = 30 564 774 bytes Quote
JPD Posted February 22, 2006 Author Report Posted February 22, 2006 Igor, there is one thing that I don't understand :The datas in the exe file seems to be compressed (if I take this part, winzip doesn't compress more), but the size is larger than those of the PTE file and if I zip the PTE file the compression rate is better than 98% in my exemple (2 579 233 bytes and 43 013 bytes in a zip).Is there complementary program (I don't think so) in this part or something add to the datas to make them bigger than the PTE text file. I though than datas in an exe would be more compressed than data in a text file. Quote
Igor Posted February 22, 2006 Report Posted February 22, 2006 PTE engine in EXE file already compressed.Images and music in EXE file can be compressed.For example, if you add BMP files and create EXE file, it will be well reduced after compression to ZIP archive. I checked this moment several times and all works as I expected. Quote
JPD Posted February 22, 2006 Author Report Posted February 22, 2006 I agree with you for PTE engine, images and music, I just speak about the datas which are at the end of the exe file, my english isn't good and it's difficult to explain what I didn't understand.It's only the size of the datas that seems be compressed because winzip is enable to do better for what is in the exe, but this part for the datas is bigger than the PTE text file, and when I zip the PTE text file, it is very small. That's what I don't understand. Quote
Igor Posted February 22, 2006 Report Posted February 22, 2006 In v4.xx we convert project file to special format and you're right it's impossible to compress this data. Especially if you have 1 MB .pte project file. But in v5.00 we will compress project file with ZIP like algorithm. Quote
Igor Posted February 22, 2006 Report Posted February 22, 2006 Tom, Don't worry, please! Of course, .pte project file will be open as usually. We will only compress project file embedded to EXE file which you never need to modify. Quote
JPD Posted February 22, 2006 Author Report Posted February 22, 2006 I had the problem with my game "Taquin" where the data part was 3492 Ko when the zip of the PTE text was about 70 Ko. I spoke about that to Fanafot's webmaster and he told me it wasn't important, but for me it is, and it's a very good new you give us, many thanks Igor. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.