Skip to content
Browse files

beautify: add deep blue effect

  • Loading branch information...
1 parent 9f2660a commit e9ffb714581ef2aab0c2fd3de8c044980dbce561 @hejiann committed Jul 24, 2012
Showing with 93 additions and 0 deletions.
  1. +3 −0 README
  2. +40 −0 beautify-effect.c
  3. +1 −0 beautify-effect.h
  4. +4 −0 beautify.c
  5. +45 −0 curves/deep-blue
View
3 README
@@ -32,6 +32,9 @@ Support: #beautify on FreeNode
CHANGELOG
===================
+2012-07-24
+beautify: add deep blue effect
+
2012-07-23
beautify: fix soft light effect
beautify: add pink blue gradient effect
View
40 beautify-effect.c
@@ -399,6 +399,46 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
break;
}
+ case BEAUTIFY_EFFECT_DEEP_BLUE:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.003922 * 255,
+ 0.121569 * 255, 0.094118 * 255,
+ 0.247059 * 255, 0.254902 * 255,
+ 0.372549 * 255, 0.439216 * 255,
+ 0.498039 * 255, 0.603922 * 255,
+ 0.623529 * 255, 0.745098 * 255,
+ 0.749020 * 255, 0.850980 * 255,
+ 0.874510 * 255, 0.941176 * 255,
+ 1.000000 * 255, 0.992157 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.019608 * 255,
+ 0.121569 * 255, 0.164706 * 255,
+ 0.247059 * 255, 0.337255 * 255,
+ 0.372549 * 255, 0.509804 * 255,
+ 0.498039 * 255, 0.666667 * 255,
+ 0.623529 * 255, 0.784314 * 255,
+ 0.749020 * 255, 0.878431 * 255,
+ 0.874510 * 255, 0.941176 * 255,
+ 1.000000 * 255, 0.992157 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.133333 * 255,
+ 0.121569 * 255, 0.333333 * 255,
+ 0.247059 * 255, 0.494118 * 255,
+ 0.372549 * 255, 0.643137 * 255,
+ 0.498039 * 255, 0.760784 * 255,
+ 0.623529 * 255, 0.850980 * 255,
+ 0.749020 * 255, 0.913725 * 255,
+ 0.874510 * 255, 0.964706 * 255,
+ 1.000000 * 255, 0.988235 * 255,
+ };
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_RED, 18, red_pts);
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_GREEN, 18, green_pts);
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
+ break;
+ }
case BEAUTIFY_EFFECT_LITTLE_FRESH:
{
guint8 red_pts[] = {
View
1 beautify-effect.h
@@ -32,6 +32,7 @@ typedef enum
BEAUTIFY_EFFECT_HDR,
BEAUTIFY_EFFECT_CLASSIC_HDR,
BEAUTIFY_EFFECT_IMPRESSION,
+ BEAUTIFY_EFFECT_DEEP_BLUE,
BEAUTIFY_EFFECT_LITTLE_FRESH,
BEAUTIFY_EFFECT_RETRO,
View
4 beautify.c
@@ -58,6 +58,7 @@ static const BeautifyEffectType lomo_effects[] =
BEAUTIFY_EFFECT_HDR,
BEAUTIFY_EFFECT_CLASSIC_HDR,
BEAUTIFY_EFFECT_IMPRESSION,
+ BEAUTIFY_EFFECT_DEEP_BLUE,
};
static const BeautifyEffectType studio_effects[] =
@@ -859,6 +860,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_IMPRESSION:
title = "Impression";
break;
+ case BEAUTIFY_EFFECT_DEEP_BLUE:
+ title = "Deep Blue";
+ break;
case BEAUTIFY_EFFECT_LITTLE_FRESH:
title = "Little Fresh";
break;
View
45 curves/deep-blue
@@ -0,0 +1,45 @@
+# GIMP curves tool settings
+
+(time 0)
+(time 0)
+(channel value)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.000000 -1.000000 -1.000000 0.121569 0.121569 -1.000000 -1.000000 0.247059 0.247059 -1.000000 -1.000000 0.372549 0.372549 -1.000000 -1.000000 0.498039 0.498039 -1.000000 -1.000000 0.623529 0.623529 -1.000000 -1.000000 0.749020 0.749020 -1.000000 -1.000000 0.874510 0.874510 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023530 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050981 0.054902 0.058824 0.062745 0.066667 0.070589 0.074510 0.078432 0.082353 0.086275 0.090196 0.094118 0.098040 0.101961 0.105883 0.109804 0.113726 0.117647 0.121569 0.125491 0.129412 0.133334 0.137255 0.141177 0.145098 0.149020 0.152942 0.156863 0.160785 0.164706 0.168628 0.172549 0.176471 0.180392 0.184314 0.188236 0.192157 0.196079 0.200000 0.203922 0.207843 0.211765 0.215687 0.219608 0.223530 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250981 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313726 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341177 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403921 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431372 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458823 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486274 0.490196 0.494117 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521568 0.525490 0.529411 0.533333 0.537255 0.541176 0.545098 0.549019 0.552941 0.556862 0.560784 0.564705 0.568627 0.572549 0.576470 0.580392 0.584313 0.588235 0.592156 0.596078 0.600000 0.603921 0.607843 0.611764 0.615686 0.619607 0.623529 0.627451 0.631372 0.635294 0.639215 0.643137 0.647059 0.650980 0.654902 0.658823 0.662745 0.666666 0.670588 0.674510 0.678431 0.682353 0.686274 0.690196 0.694118 0.698039 0.701961 0.705883 0.709804 0.713726 0.717647 0.721569 0.725490 0.729412 0.733334 0.737255 0.741177 0.745098 0.749020 0.752942 0.756863 0.760785 0.764706 0.768628 0.772549 0.776471 0.780393 0.784314 0.788236 0.792157 0.796079 0.800000 0.803922 0.807844 0.811765 0.815687 0.819608 0.823530 0.827451 0.831373 0.835294 0.839216 0.843138 0.847059 0.850981 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878432 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905883 0.909804 0.913726 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941177 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
+(time 0)
+(channel red)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.003922 -1.000000 -1.000000 0.121569 0.094118 -1.000000 -1.000000 0.247059 0.254902 -1.000000 -1.000000 0.372549 0.439216 -1.000000 -1.000000 0.498039 0.603922 -1.000000 -1.000000 0.623529 0.745098 -1.000000 -1.000000 0.749020 0.850980 -1.000000 -1.000000 0.874510 0.941176 -1.000000 -1.000000 1.000000 0.992157)
+ (n-samples 256)
+ (samples 256 0.003922 0.006295 0.008671 0.011054 0.013447 0.015854 0.018277 0.020721 0.023188 0.025681 0.028205 0.030763 0.033357 0.035991 0.038670 0.041395 0.044170 0.046999 0.049885 0.052832 0.055842 0.058919 0.062067 0.065288 0.068587 0.071966 0.075429 0.078979 0.082619 0.086354 0.090186 0.094118 0.098155 0.102295 0.106534 0.110868 0.115294 0.119807 0.124403 0.129079 0.133831 0.138654 0.143545 0.148500 0.153514 0.158584 0.163707 0.168877 0.174091 0.179345 0.184635 0.189958 0.195308 0.200683 0.206079 0.211491 0.216915 0.222347 0.227785 0.233223 0.238657 0.244085 0.249501 0.254902 0.260326 0.265811 0.271354 0.276949 0.282594 0.288285 0.294016 0.299786 0.305588 0.311421 0.317278 0.323158 0.329055 0.334966 0.340887 0.346814 0.352742 0.358669 0.364590 0.370500 0.376397 0.382276 0.388133 0.393965 0.399766 0.405535 0.411265 0.416954 0.422598 0.428192 0.433733 0.439216 0.444662 0.450092 0.455506 0.460903 0.466284 0.471648 0.476994 0.482323 0.487633 0.492925 0.498197 0.503451 0.508685 0.513899 0.519092 0.524265 0.529417 0.534547 0.539656 0.544742 0.549806 0.554847 0.559865 0.564860 0.569830 0.574776 0.579697 0.584594 0.589465 0.594310 0.599129 0.603922 0.608695 0.613456 0.618204 0.622936 0.627653 0.632353 0.637035 0.641698 0.646340 0.650962 0.655561 0.660137 0.664689 0.669215 0.673715 0.678187 0.682630 0.687043 0.691426 0.695776 0.700094 0.704377 0.708625 0.712837 0.717012 0.721148 0.725245 0.729301 0.733315 0.737287 0.741215 0.745098 0.748932 0.752714 0.756446 0.760129 0.763767 0.767359 0.770909 0.774418 0.777887 0.781319 0.784716 0.788078 0.791408 0.794709 0.797980 0.801225 0.804445 0.807642 0.810818 0.813974 0.817113 0.820235 0.823344 0.826440 0.829525 0.832602 0.835672 0.838737 0.841798 0.844858 0.847918 0.850980 0.854047 0.857120 0.860196 0.863273 0.866349 0.869423 0.872491 0.875551 0.878602 0.881641 0.884666 0.887676 0.890667 0.893638 0.896586 0.899509 0.902406 0.905274 0.908111 0.910914 0.913682 0.916412 0.919103 0.921752 0.924357 0.926915 0.929426 0.931885 0.934292 0.936645 0.938940 0.941176 0.943353 0.945475 0.947543 0.949559 0.951525 0.953442 0.955312 0.957138 0.958921 0.960662 0.962364 0.964028 0.965656 0.967250 0.968812 0.970343 0.971845 0.973321 0.974771 0.976199 0.977604 0.978990 0.980358 0.981710 0.983047 0.984372 0.985686 0.986991 0.988289 0.989581 0.990870 0.992157))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.019608 -1.000000 -1.000000 0.121569 0.164706 -1.000000 -1.000000 0.247059 0.337255 -1.000000 -1.000000 0.372549 0.509804 -1.000000 -1.000000 0.498039 0.666667 -1.000000 -1.000000 0.623529 0.784314 -1.000000 -1.000000 0.749020 0.878431 -1.000000 -1.000000 0.874510 0.941176 -1.000000 -1.000000 1.000000 0.992157)
+ (n-samples 256)
+ (samples 256 0.019608 0.024108 0.028609 0.033113 0.037619 0.042131 0.046648 0.051172 0.055703 0.060244 0.064795 0.069357 0.073931 0.078519 0.083122 0.087741 0.092376 0.097030 0.101702 0.106395 0.111110 0.115847 0.120607 0.125393 0.130204 0.135043 0.139910 0.144806 0.149732 0.154690 0.159681 0.164706 0.169770 0.174875 0.180020 0.185202 0.190420 0.195672 0.200955 0.206268 0.211607 0.216973 0.222361 0.227771 0.233199 0.238645 0.244106 0.249580 0.255065 0.260558 0.266059 0.271564 0.277072 0.282581 0.288089 0.293593 0.299091 0.304582 0.310063 0.315533 0.320989 0.326430 0.331852 0.337255 0.342655 0.348068 0.353494 0.358931 0.364377 0.369832 0.375293 0.380760 0.386230 0.391703 0.397177 0.402650 0.408122 0.413590 0.419053 0.424510 0.429959 0.435400 0.440829 0.446247 0.451651 0.457041 0.462414 0.467770 0.473106 0.478422 0.483716 0.488986 0.494231 0.499451 0.504642 0.509804 0.514955 0.520111 0.525270 0.530431 0.535590 0.540747 0.545898 0.551042 0.556176 0.561299 0.566407 0.571500 0.576574 0.581628 0.586660 0.591667 0.596647 0.601598 0.606518 0.611405 0.616256 0.621070 0.625844 0.630576 0.635264 0.639906 0.644500 0.649043 0.653533 0.657969 0.662348 0.666667 0.670930 0.675140 0.679300 0.683410 0.687473 0.691489 0.695460 0.699388 0.703273 0.707118 0.710923 0.714691 0.718422 0.722119 0.725781 0.729412 0.733012 0.736583 0.740126 0.743643 0.747135 0.750604 0.754050 0.757476 0.760883 0.764272 0.767644 0.771002 0.774347 0.777679 0.781001 0.784314 0.787615 0.790900 0.794168 0.797419 0.800652 0.803865 0.807059 0.810233 0.813386 0.816516 0.819625 0.822710 0.825771 0.828808 0.831819 0.834804 0.837762 0.840693 0.843595 0.846469 0.849313 0.852126 0.854909 0.857659 0.860377 0.863062 0.865712 0.868328 0.870909 0.873453 0.875961 0.878431 0.880857 0.883236 0.885568 0.887856 0.890101 0.892305 0.894471 0.896599 0.898692 0.900751 0.902778 0.904775 0.906744 0.908687 0.910604 0.912500 0.914373 0.916228 0.918065 0.919887 0.921695 0.923490 0.925275 0.927052 0.928822 0.930587 0.932350 0.934110 0.935871 0.937635 0.939403 0.941176 0.942944 0.944696 0.946432 0.948152 0.949857 0.951547 0.953223 0.954886 0.956536 0.958174 0.959800 0.961414 0.963018 0.964611 0.966195 0.967769 0.969335 0.970893 0.972444 0.973987 0.975524 0.977055 0.978580 0.980101 0.981617 0.983130 0.984640 0.986146 0.987651 0.989154 0.990656 0.992157))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.133333 -1.000000 -1.000000 0.121569 0.333333 -1.000000 -1.000000 0.247059 0.494118 -1.000000 -1.000000 0.372549 0.643137 -1.000000 -1.000000 0.498039 0.760784 -1.000000 -1.000000 0.623529 0.850980 -1.000000 -1.000000 0.749020 0.913725 -1.000000 -1.000000 0.874510 0.964706 -1.000000 -1.000000 1.000000 0.988235)
+ (n-samples 256)
+ (samples 256 0.133333 0.140147 0.146958 0.153765 0.160565 0.167356 0.174136 0.180902 0.187652 0.194384 0.201096 0.207786 0.214450 0.221087 0.227695 0.234271 0.240813 0.247319 0.253786 0.260213 0.266597 0.272935 0.279226 0.285467 0.291657 0.297791 0.303870 0.309889 0.315847 0.321742 0.327572 0.333333 0.339022 0.344638 0.350184 0.355662 0.361076 0.366430 0.371725 0.376965 0.382153 0.387292 0.392386 0.397436 0.402447 0.407420 0.412360 0.417270 0.422151 0.427008 0.431844 0.436660 0.441462 0.446250 0.451030 0.455802 0.460572 0.465341 0.470113 0.474890 0.479676 0.484474 0.489287 0.494118 0.498962 0.503812 0.508666 0.513523 0.518380 0.523235 0.528088 0.532935 0.537776 0.542609 0.547431 0.552241 0.557037 0.561817 0.566580 0.571324 0.576046 0.580746 0.585421 0.590070 0.594690 0.599280 0.603839 0.608364 0.612853 0.617306 0.621719 0.626091 0.630421 0.634707 0.638946 0.643137 0.647286 0.651402 0.655483 0.659532 0.663547 0.667529 0.671480 0.675398 0.679285 0.683140 0.686965 0.690759 0.694523 0.698257 0.701961 0.705637 0.709284 0.712902 0.716493 0.720056 0.723591 0.727100 0.730582 0.734038 0.737468 0.740872 0.744252 0.747606 0.750936 0.754242 0.757525 0.760784 0.764018 0.767225 0.770406 0.773560 0.776687 0.779787 0.782860 0.785907 0.788926 0.791919 0.794885 0.797824 0.800737 0.803623 0.806481 0.809313 0.812119 0.814897 0.817649 0.820373 0.823071 0.825743 0.828387 0.831005 0.833595 0.836159 0.838696 0.841207 0.843690 0.846147 0.848577 0.850980 0.853349 0.855677 0.857966 0.860217 0.862432 0.864612 0.866758 0.868872 0.870956 0.873010 0.875037 0.877037 0.879012 0.880964 0.882894 0.884803 0.886694 0.888566 0.890422 0.892264 0.894092 0.895908 0.897713 0.899509 0.901298 0.903080 0.904858 0.906632 0.908405 0.910177 0.911950 0.913725 0.915504 0.917285 0.919067 0.920848 0.922628 0.924404 0.926176 0.927941 0.929698 0.931447 0.933185 0.934911 0.936623 0.938321 0.940003 0.941666 0.943311 0.944935 0.946537 0.948116 0.949669 0.951197 0.952696 0.954167 0.955606 0.957014 0.958388 0.959727 0.961030 0.962295 0.963521 0.964706 0.965850 0.966956 0.968023 0.969055 0.970051 0.971013 0.971942 0.972840 0.973708 0.974547 0.975358 0.976143 0.976903 0.977639 0.978352 0.979044 0.979716 0.980369 0.981004 0.981623 0.982227 0.982817 0.983395 0.983961 0.984517 0.985065 0.985605 0.986138 0.986667 0.987192 0.987714 0.988235))
+(time 0)
+(channel alpha)
+(curve
+ (curve-type free)
+ (n-points 17)
+ (points 34 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000)
+ (n-samples 256)
+ (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023529 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050980 0.054902 0.058824 0.062745 0.066667 0.070588 0.074510 0.078431 0.082353 0.086275 0.090196 0.094118 0.098039 0.101961 0.105882 0.109804 0.113725 0.117647 0.121569 0.125490 0.129412 0.133333 0.137255 0.141176 0.145098 0.149020 0.152941 0.156863 0.160784 0.164706 0.168627 0.172549 0.176471 0.180392 0.184314 0.188235 0.192157 0.196078 0.200000 0.203922 0.207843 0.211765 0.215686 0.219608 0.223529 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250980 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313725 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341176 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403922 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431373 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458824 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486275 0.490196 0.494118 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521569 0.525490 0.529412 0.533333 0.537255 0.541176 0.545098 0.549020 0.552941 0.556863 0.560784 0.564706 0.568627 0.572549 0.576471 0.580392 0.584314 0.588235 0.592157 0.596078 0.600000 0.603922 0.607843 0.611765 0.615686 0.619608 0.623529 0.627451 0.631373 0.635294 0.639216 0.643137 0.647059 0.650980 0.654902 0.658824 0.662745 0.666667 0.670588 0.674510 0.678431 0.682353 0.686275 0.690196 0.694118 0.698039 0.701961 0.705882 0.709804 0.713725 0.717647 0.721569 0.725490 0.729412 0.733333 0.737255 0.741176 0.745098 0.749020 0.752941 0.756863 0.760784 0.764706 0.768627 0.772549 0.776471 0.780392 0.784314 0.788235 0.792157 0.796078 0.800000 0.803922 0.807843 0.811765 0.815686 0.819608 0.823529 0.827451 0.831373 0.835294 0.839216 0.843137 0.847059 0.850980 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878431 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905882 0.909804 0.913725 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941176 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
+
+# end of curves tool settings

0 comments on commit e9ffb71

Please sign in to comment.
Something went wrong with that request. Please try again.