Page Menu
Home
Search
Configure Global Search
Log In
Files
F23776
pngcompression.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Adam Dominec (emu)
Nov 13 2013, 5:14 PM
Size
1 KB
Subscribers
None
pngcompression.diff
View Options
Index: source/blender/blenkernel/intern/image.c
===================================================================
--- source/blender/blenkernel/intern/image.c (revision 52546)
+++ source/blender/blenkernel/intern/image.c (working copy)
@@ -931,7 +931,7 @@
return RADHDR;
#endif
else if (imtype == R_IMF_IMTYPE_PNG)
- return PNG;
+ return PNG | 90;
#ifdef WITH_DDS
else if (imtype == R_IMF_IMTYPE_DDS)
return DDS;
Index: source/blender/imbuf/intern/allocimbuf.c
===================================================================
--- source/blender/imbuf/intern/allocimbuf.c (revision 52546)
+++ source/blender/imbuf/intern/allocimbuf.c (working copy)
@@ -355,7 +355,7 @@
ibuf->x = x;
ibuf->y = y;
ibuf->planes = planes;
- ibuf->ftype = TGA;
+ ibuf->ftype = PNG | 90; /* the 90 means, set compression to nearly the maximum */
ibuf->channels = 4; /* float option, is set to other values when buffers get assigned */
ibuf->ppm[0] = ibuf->ppm[1] = IMB_DPI_DEFAULT / 0.0254f; /* IMB_DPI_DEFAULT -> pixels-per-meter */
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bf/18/12b275d2672774278333d293e173
Event Timeline
Log In to Comment