Hi everyone this is the "report" of the project.
This time we are using Imagemagick, Magick++; we can half size the image yeah, but we can't change the color, ooooooooo u.u, so with this problem we are in a hurry, but we can do it and we feel positive with it because we are in the half of the way to complete this task :)
I feel like I´m not doing my best with this project, but here I am trying.
Some links that we found, (more Ever) and this can help:
http://www.imagemagick.org/Magick++/Color.html#ColorGray
http://www.imagemagick.org/script/perl-magick.php
The code:
#include
#include
using namespace std;
using namespace Magick;
void newline(){
coutendl;
}
int main(int argc,char **argv)
{
InitializeMagick(*argv);
try{
int x;
cout"Hi, Im a manipulator of images "endl;
newline();
cout"What do you want to do? (press the number in your keyboard) "endl;
newline();
cout"1. Rezise the image to one half of its original size"endl;
cout"2. Switch to black and white"endl;
newline();
cin>>x;
if(x==1){
newline();
cout"Alright, now introduce the name of the file with its extension; example: new.jpg"endl;
newline();
Image image;
string img;
cin>>img;
image.read(img);
image.minify();
image.write("resized.jpg");
}
if(x==2){
newline();
cout"Alright, now introduce the name of the file with its extension; example: new.jpg"endl;
newline();
Image image;
string img2;
cin>>img2;
image.read(img2);
image.quantize(colorspace.gray);
image.write("blackandwhite.jpg");
}
}
catch( Exception &error_ )
{
cout "Caught exception: " error_.what() endl;
return 1;
}
return 0;
}
]]>
Hi everyone this is the “report” of the project.
This time we are using Imagemagick, Magick++; we can half size the image yeah, but we can’t change the color, ooooooooo u.u, so with this problem we are in a hurry, but we can do it and we feel positive with it because we are in the half of the way to complete this task
I feel like I´m not doing my best with this project, but here I am trying.
Some links that we found, (more Ever) and  this can help:
http:/
http:/
Â
The code:
#include
#include
using namespace std;
using namespace Magick;
void newline(){
 coutendl;
}
int main(int argc,char **argv)
{
 InitializeMagick(*argv);
 try{
 int x;
 cout"Hi, Im a manipulator of images "endl;
 newline();
 cout"What do you want to do? (press the number in your keyboard) "endl;
 newline();
 cout"1. Rezise the image to one half of its original size"endl;
 cout"2. Switch to black and white"endl;
 newline();
 cin>>x;
Â
 if(x==1){
    newline();
    cout"Alright, now introduce the name of the file with its extension; example: new.jpg"endl;Â
    newline();
    Image image;
    string img;
    cin>>img;
    image.read(img);
    image.minify();
    image.write("resized.jpg");
 }
 if(x==2){
    newline();
    cout"Alright, now introduce the name of the file with its extension; example: new.jpg"endl;Â
    newline();
    Image image;
    string img2;
    cin>>img2;
    image.read(img2);
    image.quantize(colorspace.gray);
    image.write("blackandwhite.jpg");
 }    Â
 }
 catch( Exception &error_ )
   {
     cout "Caught exception: " error_.what() endl;
     return 1;
   }
 return 0;
}
Â
Â
]]>