summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-builder/asb-app.c')
-rw-r--r--libappstream-builder/asb-app.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-builder/asb-app.c b/libappstream-builder/asb-app.c
index fa42160..b44f091 100644
--- a/libappstream-builder/asb-app.c
+++ b/libappstream-builder/asb-app.c
@@ -33,6 +33,7 @@
#include <appstream-glib.h>
#include "asb-app.h"
+#include "asb-utils.h"
typedef struct
{
@@ -188,6 +189,10 @@ asb_app_save_resources (AsbApp *app, AsbAppSaveFlags save_flags, GError **error)
if (!gdk_pixbuf_save (pixbuf, filename, "png", error, NULL))
return FALSE;
+ /* optimize the icon */
+ if (!asb_utils_optimize_png (filename, error))
+ return FALSE;
+
/* set new AppStream compatible icon name */
asb_package_log (priv->pkg,
ASB_PACKAGE_LOG_LEVEL_DEBUG,