Here is some example code to help you get started!
Here is the original image I will be working with so that you can compare the results.
Challenge 1 – Darker
Create a program that makes your image darker rather than lighter and saves the image as darker.jpg.
Challenge 2 – Grayscale
Create a program that converts the image to grayscale and saves it as ‘grayscale.jpg’
Challenge 3 – B&W
Create a program that converts the image to pure black and white and saves it as ‘bw.jpg’.
Challenge 4 – Invertor
Create a program that inverts all the colour channels in the image and saves it as ‘inverted.jpg’.
Challenge 5 – RGB Split
Create a program that splits the image into 3 different colour channels and saves a single colour copy of each image in ‘r.jpg’, ‘g.jpg’ and ‘b.jpg’
Challenge 6 – Increased Contrast
Create a program that increases the contrast in the image and saves it as ‘contrast.jpg’.
Challenge 7 – Rotated
Create a program that rotates the image by 180 degrees and saves it as ‘rotated.jpg’. You should not use the in-built functions for this.
Challenge 8 – Secret Message
Create a program that stores a secret message that the user inputs in the image using steganography and saves the image as ‘secret.jpg’.
Write another program that decrypts the secret message.