Skip to content
Browse files

beautify: add classic studio effect.

  • Loading branch information...
1 parent a3963ee commit f09cd5a105023c03d2555a8035a11f320d545115 @hejiann committed
Showing with 91 additions and 1 deletion.
  1. +1 −0 README
  2. +40 −0 beautify-effect.c
  3. +1 −1 beautify-effect.h
  4. +4 −0 beautify.c
  5. +45 −0 curves/classic-studio
View
1 README
@@ -44,6 +44,7 @@ texture-border: add custom texures support.
skin-whitening: add reset feature.
skin-whitening: fix plug-in-skin-whitening procedure to let this filter can be used in scirpts.
Change all the beautify plug-ins under the "Filters" menu instead of "Tools" menu.
+beautify: add classic studio effect.
2012-07-27
beautify: add sketch effect
View
40 beautify-effect.c
@@ -651,6 +651,46 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
}
break;
+ case BEAUTIFY_EFFECT_CLASSIC_STUDIO:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.002941 * 255,
+ 0.121569 * 255, 0.105177 * 255,
+ 0.247059 * 255, 0.276869 * 255,
+ 0.372549 * 255, 0.449951 * 255,
+ 0.498039 * 255, 0.615011 * 255,
+ 0.623529 * 255, 0.765528 * 255,
+ 0.749020 * 255, 0.884498 * 255,
+ 0.874510 * 255, 0.964439 * 255,
+ 1.000000 * 255, 0.996641 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.000980 * 255,
+ 0.121569 * 255, 0.023976 * 255,
+ 0.247059 * 255, 0.117564 * 255,
+ 0.372549 * 255, 0.268570 * 255,
+ 0.498039 * 255, 0.450785 * 255,
+ 0.623529 * 255, 0.640827 * 255,
+ 0.749020 * 255, 0.821280 * 255,
+ 0.874510 * 255, 0.944143 * 255,
+ 1.000000 * 255, 0.994046 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.001705 * 255,
+ 0.121569 * 255, 0.091176 * 255,
+ 0.247059 * 255, 0.255272 * 255,
+ 0.372549 * 255, 0.426934 * 255,
+ 0.498039 * 255, 0.599930 * 255,
+ 0.623529 * 255, 0.749604 * 255,
+ 0.749020 * 255, 0.879809 * 255,
+ 0.874510 * 255, 0.963030 * 255,
+ 1.000000 * 255, 0.994565 * 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_RETRO:
{
guint8 red_pts[] = {
View
2 beautify-effect.h
@@ -54,7 +54,7 @@ typedef enum
BEAUTIFY_EFFECT_ELEGANT,
BEAUTIFY_EFFECT_LITTLE_FRESH,
- BEAUTIFY_EFFECT_CLASSIC_STUDIO, // TODO
+ BEAUTIFY_EFFECT_CLASSIC_STUDIO,
BEAUTIFY_EFFECT_RETRO,
BEAUTIFY_EFFECT_PINK_LADY,
BEAUTIFY_EFFECT_ABAO_COLOR,
View
4 beautify.c
@@ -72,6 +72,7 @@ static const BeautifyEffectType studio_effects[] =
{
BEAUTIFY_EFFECT_ELEGANT,
BEAUTIFY_EFFECT_LITTLE_FRESH,
+ BEAUTIFY_EFFECT_CLASSIC_STUDIO,
BEAUTIFY_EFFECT_RETRO,
BEAUTIFY_EFFECT_PINK_LADY,
BEAUTIFY_EFFECT_ABAO_COLOR,
@@ -974,6 +975,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_LITTLE_FRESH:
title = "Little Fresh";
break;
+ case BEAUTIFY_EFFECT_CLASSIC_STUDIO:
+ title = "Classic Studio";
+ break;
case BEAUTIFY_EFFECT_RETRO:
title = "Retro";
break;
View
45 curves/classic-studio
@@ -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.002941 -1.000000 -1.000000 0.121569 0.105177 -1.000000 -1.000000 0.247059 0.276869 -1.000000 -1.000000 0.372549 0.449951 -1.000000 -1.000000 0.498039 0.615011 -1.000000 -1.000000 0.623529 0.765528 -1.000000 -1.000000 0.749020 0.884498 -1.000000 -1.000000 0.874510 0.964439 -1.000000 -1.000000 1.000000 0.996641)
+ (n-samples 256)
+ (samples 256 0.002941 0.005714 0.008491 0.011274 0.014067 0.016874 0.019696 0.022539 0.025404 0.028295 0.031216 0.034170 0.037160 0.040189 0.043260 0.046378 0.049545 0.052764 0.056039 0.059373 0.062769 0.066231 0.069762 0.073365 0.077043 0.080800 0.084639 0.088563 0.092575 0.096680 0.100879 0.105177 0.109587 0.114117 0.118761 0.123513 0.128368 0.133320 0.138362 0.143490 0.148696 0.153976 0.159323 0.164732 0.170196 0.175711 0.181270 0.186867 0.192496 0.198153 0.203830 0.209522 0.215223 0.220927 0.226629 0.232322 0.238002 0.243661 0.249294 0.254896 0.260460 0.265981 0.271452 0.276869 0.282261 0.287663 0.293074 0.298493 0.303918 0.309350 0.314788 0.320230 0.325675 0.331124 0.336574 0.342025 0.347477 0.352928 0.358377 0.363824 0.369268 0.374708 0.380143 0.385572 0.390994 0.396409 0.401815 0.407212 0.412599 0.417975 0.423339 0.428690 0.434028 0.439351 0.444659 0.449951 0.455234 0.460514 0.465792 0.471067 0.476338 0.481604 0.486865 0.492121 0.497370 0.502613 0.507848 0.513075 0.518294 0.523503 0.528702 0.533891 0.539069 0.544236 0.549390 0.554531 0.559659 0.564773 0.569872 0.574957 0.580025 0.585077 0.590112 0.595129 0.600128 0.605109 0.610070 0.615011 0.619943 0.624876 0.629807 0.634737 0.639663 0.644584 0.649497 0.654402 0.659297 0.664181 0.669051 0.673906 0.678746 0.683567 0.688369 0.693150 0.697909 0.702643 0.707352 0.712034 0.716687 0.721309 0.725900 0.730458 0.734980 0.739466 0.743914 0.748322 0.752689 0.757014 0.761294 0.765528 0.769727 0.773902 0.778051 0.782176 0.786274 0.790345 0.794388 0.798403 0.802390 0.806346 0.810272 0.814167 0.818031 0.821862 0.825660 0.829424 0.833154 0.836848 0.840507 0.844129 0.847714 0.851261 0.854770 0.858239 0.861668 0.865057 0.868405 0.871710 0.874973 0.878192 0.881367 0.884498 0.887591 0.890654 0.893685 0.896685 0.899651 0.902584 0.905483 0.908346 0.911174 0.913965 0.916718 0.919432 0.922108 0.924743 0.927338 0.929892 0.932402 0.934870 0.937294 0.939673 0.942006 0.944293 0.946533 0.948725 0.950868 0.952962 0.955005 0.956998 0.958938 0.960825 0.962659 0.964439 0.966157 0.967807 0.969391 0.970912 0.972372 0.973772 0.975116 0.976406 0.977642 0.978829 0.979968 0.981060 0.982109 0.983117 0.984085 0.985016 0.985911 0.986775 0.987607 0.988411 0.989189 0.989943 0.990675 0.991388 0.992083 0.992762 0.993429 0.994084 0.994731 0.995371 0.996007 0.996641))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.000980 -1.000000 -1.000000 0.121569 0.023976 -1.000000 -1.000000 0.247059 0.117564 -1.000000 -1.000000 0.372549 0.268570 -1.000000 -1.000000 0.498039 0.450785 -1.000000 -1.000000 0.623529 0.640827 -1.000000 -1.000000 0.749020 0.821280 -1.000000 -1.000000 0.874510 0.944143 -1.000000 -1.000000 1.000000 0.994046)
+ (n-samples 256)
+ (samples 256 0.000980 0.001168 0.001359 0.001558 0.001767 0.001989 0.002229 0.002490 0.002775 0.003087 0.003431 0.003810 0.004226 0.004684 0.005187 0.005739 0.006342 0.007001 0.007718 0.008498 0.009344 0.010259 0.011246 0.012310 0.013453 0.014680 0.015992 0.017395 0.018892 0.020485 0.022179 0.023976 0.025865 0.027832 0.029875 0.031993 0.034184 0.036449 0.038786 0.041194 0.043672 0.046218 0.048832 0.051513 0.054260 0.057072 0.059947 0.062885 0.065885 0.068945 0.072064 0.075242 0.078478 0.081770 0.085117 0.088519 0.091974 0.095481 0.099039 0.102648 0.106306 0.110012 0.113765 0.117564 0.121426 0.125368 0.129386 0.133479 0.137644 0.141878 0.146180 0.150547 0.154976 0.159465 0.164012 0.168614 0.173269 0.177975 0.182729 0.187528 0.192370 0.197254 0.202176 0.207134 0.212125 0.217148 0.222200 0.227278 0.232381 0.237505 0.242648 0.247808 0.252983 0.258170 0.263366 0.268570 0.273803 0.279087 0.284420 0.289800 0.295225 0.300692 0.306200 0.311746 0.317328 0.322945 0.328593 0.334271 0.339976 0.345708 0.351462 0.357238 0.363032 0.368844 0.374671 0.380510 0.386359 0.392217 0.398081 0.403949 0.409820 0.415690 0.421557 0.427420 0.433277 0.439124 0.444961 0.450785 0.456614 0.462465 0.468338 0.474231 0.480143 0.486070 0.492013 0.497970 0.503938 0.509917 0.515904 0.521899 0.527899 0.533903 0.539909 0.545916 0.551922 0.557926 0.563926 0.569920 0.575906 0.581884 0.587852 0.593807 0.599749 0.605676 0.611586 0.617477 0.623349 0.629198 0.635025 0.640827 0.646634 0.652474 0.658343 0.664236 0.670149 0.676078 0.682018 0.687964 0.693913 0.699860 0.705800 0.711730 0.717644 0.723539 0.729410 0.735252 0.741062 0.746834 0.752565 0.758250 0.763884 0.769464 0.774984 0.780441 0.785830 0.791146 0.796386 0.801545 0.806618 0.811601 0.816490 0.821280 0.825998 0.830674 0.835306 0.839892 0.844432 0.848923 0.853365 0.857755 0.862093 0.866377 0.870606 0.874778 0.878892 0.882946 0.886940 0.890871 0.894738 0.898541 0.902276 0.905944 0.909542 0.913070 0.916525 0.919907 0.923214 0.926444 0.929597 0.932670 0.935663 0.938573 0.941401 0.944143 0.946790 0.949333 0.951775 0.954121 0.956374 0.958536 0.960612 0.962604 0.964516 0.966351 0.968112 0.969804 0.971428 0.972989 0.974490 0.975935 0.977325 0.978666 0.979960 0.981210 0.982421 0.983595 0.984735 0.985845 0.986929 0.987989 0.989029 0.990052 0.991063 0.992063 0.993056 0.994046))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.001705 -1.000000 -1.000000 0.121569 0.091176 -1.000000 -1.000000 0.247059 0.255272 -1.000000 -1.000000 0.372549 0.426934 -1.000000 -1.000000 0.498039 0.599930 -1.000000 -1.000000 0.623529 0.749604 -1.000000 -1.000000 0.749020 0.879809 -1.000000 -1.000000 0.874510 0.963030 -1.000000 -1.000000 1.000000 0.994565)
+ (n-samples 256)
+ (samples 256 0.001705 0.004022 0.006343 0.008671 0.011010 0.013363 0.015734 0.018126 0.020543 0.022988 0.025466 0.027978 0.030530 0.033125 0.035766 0.038457 0.041201 0.044001 0.046863 0.049788 0.052781 0.055845 0.058983 0.062200 0.065499 0.068882 0.072355 0.075920 0.079581 0.083342 0.087206 0.091176 0.095265 0.099479 0.103812 0.108258 0.112811 0.117467 0.122218 0.127059 0.131984 0.136988 0.142065 0.147209 0.152414 0.157674 0.162984 0.168339 0.173731 0.179156 0.184607 0.190079 0.195567 0.201063 0.206563 0.212061 0.217551 0.223027 0.228484 0.233915 0.239316 0.244679 0.250000 0.255272 0.260525 0.265791 0.271069 0.276359 0.281660 0.286971 0.292293 0.297624 0.302964 0.308313 0.313669 0.319032 0.324403 0.329779 0.335160 0.340547 0.345938 0.351332 0.356730 0.362131 0.367533 0.372937 0.378342 0.383747 0.389152 0.394557 0.399960 0.405361 0.410759 0.416155 0.421546 0.426934 0.432332 0.437752 0.443194 0.448654 0.454131 0.459621 0.465124 0.470636 0.476155 0.481680 0.487207 0.492735 0.498261 0.503783 0.509299 0.514806 0.520303 0.525787 0.531255 0.536706 0.542137 0.547546 0.552931 0.558290 0.563619 0.568918 0.574183 0.579412 0.584604 0.589756 0.594865 0.599930 0.604959 0.609961 0.614937 0.619888 0.624814 0.629715 0.634592 0.639445 0.644274 0.649079 0.653862 0.658621 0.663359 0.668075 0.672769 0.677441 0.682093 0.686725 0.691336 0.695927 0.700499 0.705052 0.709586 0.714101 0.718598 0.723078 0.727540 0.731986 0.736414 0.740827 0.745223 0.749604 0.753981 0.758363 0.762747 0.767132 0.771515 0.775893 0.780264 0.784625 0.788974 0.793308 0.797625 0.801922 0.806196 0.810446 0.814668 0.818860 0.823020 0.827144 0.831232 0.835279 0.839284 0.843243 0.847156 0.851018 0.854827 0.858581 0.862278 0.865915 0.869489 0.872997 0.876438 0.879809 0.883123 0.886395 0.889626 0.892813 0.895958 0.899059 0.902116 0.905129 0.908097 0.911021 0.913898 0.916729 0.919514 0.922253 0.924943 0.927586 0.930181 0.932727 0.935225 0.937672 0.940070 0.942418 0.944715 0.946960 0.949154 0.951296 0.953385 0.955422 0.957405 0.959334 0.961209 0.963030 0.964786 0.966468 0.968079 0.969622 0.971098 0.972511 0.973862 0.975154 0.976389 0.977569 0.978698 0.979777 0.980809 0.981795 0.982739 0.983643 0.984509 0.985340 0.986137 0.986904 0.987642 0.988354 0.989042 0.989710 0.990358 0.990990 0.991607 0.992213 0.992809 0.993399 0.993983 0.994565))
+(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 f09cd5a

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