Permalink
Browse files

beautify: fix the Black And White effect.

  • Loading branch information...
1 parent 6ba28d5 commit 2c52eb243b5f6044db6e90cdded32de55cf53713 @hejiann committed Aug 5, 2012
Showing with 16 additions and 1 deletion.
  1. +3 −0 README
  2. +1 −1 beautify-effect.c
  3. +12 −0 beautify.c
View
3 README
@@ -47,6 +47,9 @@ GIMP Chat: http://www.gimpchat.com/viewtopic.php?f=9&t=4811
CHANGELOG
===================
+2012-08-05
+beautify: fix the Black And White effect.
+
2012-08-04:
beautify: fix the Retro LOMO effect.
beautify: fixed GIMP 2.6 compile issue: undefined reference to `gimp_image_select_rectangle'
View
@@ -46,7 +46,7 @@ static void black_and_white (gint32 image_ID, gint32 drawable_ID)
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
- gimp_desaturate_full (drawable_ID, GIMP_DESATURATE_LUMINOSITY);
+ //gimp_desaturate_full (drawable_ID, GIMP_DESATURATE_LUMINOSITY);
}
void
View
@@ -1093,6 +1093,18 @@ effect_icon_new (BeautifyEffectType effect)
}
gint32 image = gimp_image_duplicate (preview_image);
+
+ /*if (width > THUMBNAIL_SIZE && height > THUMBNAIL_SIZE) {
+ if (width > height)
+ {
+ gimp_image_scale (image, THUMBNAIL_SIZE * width / height, THUMBNAIL_SIZE);
+ }
+ else
+ {
+ gimp_image_scale (image, THUMBNAIL_SIZE, THUMBNAIL_SIZE * height / width);
+ }
+ }*/
+
run_effect (image, effect);
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);

0 comments on commit 2c52eb2

Please sign in to comment.