Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":26133,"date":"2015-11-12T22:13:49","date_gmt":"2015-11-13T04:13:49","guid":{"rendered":"https:\/\/everibarra101programming.withknown.com\/2015\/project-advance-2"},"modified":"2015-11-12T22:13:49","modified_gmt":"2015-11-13T04:13:49","slug":"project-advance-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/project-advance-2\/","title":{"rendered":"#Project Advance 2."},"content":{"rendered":"
\n

So, right now I technically push even forward my programming skills, I mean…using imagemagick is a little bit hard, but today I compile some code and it runs!!!<\/p>\n

Marco and I manage to resize the image to one half of its original size, but now we\u00b4re struggling with the grayscale functions and stuff, at least we have something to keep working on and we feel positive about the results in our final project.<\/p>\n

We find some useful functions in the following pages:<\/p>\n

http:\/<\/wbr>\/<\/wbr>www.imagemagick.org\/<\/wbr>script\/<\/wbr>perl-magick.php<\/a><\/p>\n

http:\/<\/wbr>\/<\/wbr>www.imagemagick.org\/<\/wbr>Magick++\/<\/wbr>Color.html#ColorGray<\/a><\/p>\n

<\/p>\n

\n
#include<\/a> <Magick++.h> <\/span>
#include<\/a> <iostream> <\/span>
using<\/span> namespace<\/span> std;
using<\/span> namespace<\/span> Magick;

void<\/span> newline<\/span>(){
\u00a0 cout<<<\/span>endl;
}

int<\/span> main<\/span>(int<\/span> argc,char<\/span> **<\/span>argv)
{
\u00a0 InitializeMagick(*<\/span>argv);
\u00a0 try{
\u00a0 int<\/span> x;
\u00a0 cout<<<\/span>"Hi, Im a manipulator of images "<\/span><<<\/span>endl;
\u00a0 newline();
\u00a0 cout<<<\/span>"What do you want to do? (press the number in your keyboard) "<\/span><<<\/span>endl;
\u00a0 newline();
\u00a0 cout<<<\/span>"1. Rezise the image to one half of its original size"<\/span><<<\/span>endl;
\u00a0 cout<<<\/span>"2. Switch to black and white"<\/span><<<\/span>endl;
\u00a0 newline();
\u00a0 cin>><\/span>x;
\u00a0
\u00a0 if<\/span>(x==<\/span>1<\/span>){
\u00a0\u00a0\u00a0\u00a0 newline();
\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>"Alright, now introduce the name of the file with its extension; example: new.jpg"<\/span><<<\/span>endl;\u00a0
\u00a0\u00a0\u00a0\u00a0 newline();
\u00a0\u00a0\u00a0\u00a0 Image image;
\u00a0\u00a0\u00a0\u00a0 string img;
\u00a0\u00a0\u00a0\u00a0 cin>><\/span>img;
\u00a0\u00a0\u00a0\u00a0 image.read(img);
\u00a0\u00a0\u00a0\u00a0 image.minify();
\u00a0\u00a0\u00a0\u00a0 image.write("resized.jpg"<\/span>);
\u00a0}
\u00a0 if<\/span>(x==<\/span>2<\/span>){
\u00a0\u00a0\u00a0\u00a0 newline();
\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>"Alright, now introduce the name of the file with its extension; example: new.jpg"<\/span><<<\/span>endl;\u00a0
\u00a0\u00a0\u00a0\u00a0 newline();
\u00a0\u00a0\u00a0\u00a0 Image image;
\u00a0\u00a0\u00a0\u00a0 string img2;
\u00a0\u00a0\u00a0\u00a0 cin>><\/span>img2;
\u00a0\u00a0\u00a0\u00a0 image.read(img2);
\u00a0\u00a0\u00a0\u00a0 image.quantize(colorspace.gray);
\u00a0\u00a0\u00a0\u00a0 image.write("blackandwhite.jpg"<\/span>);
\u00a0} \u00a0\u00a0\u00a0 \u00a0
\u00a0}
\u00a0 catch<\/span>( Exception &<\/span>error_ )
\u00a0\u00a0\u00a0 {
\u00a0\u00a0\u00a0\u00a0\u00a0 cout <<<\/span> "Caught exception: "<\/span> <<<\/span> error_.what() <<<\/span> endl;
\u00a0\u00a0\u00a0\u00a0\u00a0 return<\/span> 1<\/span>;
\u00a0\u00a0\u00a0 }
\u00a0 return<\/span> 0<\/span>;
}
<\/pre>\n<\/div>\n

The first option is the only one that works, we are going to keep working with the colors.<\/p>\n

See you later!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\n

So, right now I technically push even forward my programming skills, I mean…using imagemagick is a little bit hard, but today I compile some code and it runs!!!<\/p>\n

Marco and I manage to resize the image to one half of its original size, but now we´re struggling with the grayscale functions and stuff, at least we have something to keep working on and we feel positive about the results in our final project.<\/p>\n

We find some useful functions in the following pages:<\/p>\n

http:\/\/www.imagemagick.org\/script\/perl-magick.php<\/a><\/p>\n

http:\/\/www.imagemagick.org\/Magick++\/Color.html#ColorGray<\/a><\/p>\n

<\/p>\n

\n
#include<\/a> <Magick++.h> <\/span>
#include<\/a> <iostream> <\/span>
using<\/span> namespace<\/span> std;
using<\/span> namespace<\/span> Magick;

void<\/span> newline<\/span>(){
  cout<<<\/span>endl;
}

int<\/span> main<\/span>(int<\/span> argc,char<\/span> **<\/span>argv)
{
  InitializeMagick(*<\/span>argv);
  try{
  int<\/span> x;
  cout<<<\/span>\"Hi, Im a manipulator of images \"<\/span><<<\/span>endl;
  newline();
  cout<<<\/span>\"What do you want to do? (press the number in your keyboard) \"<\/span><<<\/span>endl;
  newline();
  cout<<<\/span>\"1. Rezise the image to one half of its original size\"<\/span><<<\/span>endl;
  cout<<<\/span>\"2. Switch to black and white\"<\/span><<<\/span>endl;
  newline();
  cin>><\/span>x;
 
  if<\/span>(x==<\/span>1<\/span>){
     newline();
     cout<<<\/span>\"Alright, now introduce the name of the file with its extension; example: new.jpg\"<\/span><<<\/span>endl; 
     newline();
     Image image;
     string img;
     cin>><\/span>img;
     image.read(img);
     image.minify();
     image.write(\"resized.jpg\"<\/span>);
 }
  if<\/span>(x==<\/span>2<\/span>){
     newline();
     cout<<<\/span>\"Alright, now introduce the name of the file with its extension; example: new.jpg\"<\/span><<<\/span>endl; 
     newline();
     Image image;
     string img2;
     cin>><\/span>img2;
     image.read(img2);
     image.quantize(colorspace.gray);
     image.write(\"blackandwhite.jpg\"<\/span>);
 }      
 }
  catch<\/span>( Exception &<\/span>error_ )
    {
      cout <<<\/span> \"Caught exception: \"<\/span> <<<\/span> error_.what() <<<\/span> endl;
      return<\/span> 1<\/span>;
    }
  return<\/span> 0<\/span>;
}
<\/pre>\n<\/div>\n

The first option is the only one that works, we are going to keep working with the colors.<\/p>\n

See you later!<\/p>\n<\/div>\n","protected":false},"author":262,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[499,606,519,144,605,604,823,607,147,95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26133"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/262"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=26133"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26133\/revisions"}],"predecessor-version":[{"id":26134,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26133\/revisions\/26134"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=26133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=26133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=26133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}