[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Images made with the diagram designer will now have smaller file sizes when the color count does not exceed 256. Although the script was outputing images with larger color counts as JPG, and it was outputing smaller pallette images as PNG, it was still outputting the PNG images as true color images. I modied the script to output PNG images as small pallete, and I modified it to use the greatest amount of compression when outputing a PNG. In a test I ran, an image that was originally 12.7 KB got reduced to 7.66 KB by changing it to a small pallette image, and it got further reduced to 6.43 KB by maximizing the compression. In another test I ran, I compared the file size to that of an image I had already reduced the file size of with Ultimate Paint. With its file size optimized with Ultimate Paint, it had been reduced from 12.9 KB to 6.6 KB, but the improved script now outputs the same image with a size of 6.57 KB. This means there is no longer any need to reduce the size of the PNG images created with the Diagram Designer with some other program. Note that this affects all diagrams previously made with the Diagram Designer, since the changes were to drawdiagram.php, the script that draws the images, not to diagram-designer.php.