JES is a programming environment that includes both a programming area and its own command line. You can use JES to edit images, videos and sounds.
There are many different ways you can edit photos using JES. This includes adding a grayscale filter or negative filter. You can also mirror the image or enhance a particular color.
how to create a grayscale image
Many easy-to-use photo editing apps let you edit images in a variety of ways. One of these involves adding a grayscale filter. In JES, you can edit images to use a grayscale filter by changing the color of each pixel to use white, gray, or black.
JES uses the Jython programming language, which is similar to Python and follows the same indentation rules. If needed, you can check out some useful Python commands for beginners to get up to speed.
how to make a negative image
A negative image is an image where light areas of the picture appear darker, and dark parts of the picture appear lighter. You can create this effect by modifying the red, green, and blue values of each pixel.
how to enhance a specific color in an image
You can also use JES to enhance specific colors of the image. For example, you can double the red value of each pixel to make the picture appear more red.
how to mirror image
To mirror an image, each pixel on the left side of the image must exactly match the opposite pixel on the right.
You can do this by creating a new blank image with a white background. You can then copy each pixel to create a new mirrored image.
Use the MakeEmptyPicture() function to create an empty image. A blank image is a picture with a white background. Double the width so that you can fit the original image on the left and the flipped image on the right.
Editing images using JES
Now you hopefully know how to edit photos in JES using various techniques. These aren’t the only techniques you can apply to Photos, so you can experiment more with the other possibilities in JES.
Small and fun projects are a great way to understand key Python concepts if you want to improve your Python skills.
Python is a versatile programming language that you can use to write a variety of GUI and CLI-based applications. If you’re new to Python, there’s no better way to reinforce your learning than by working on mini-projects.
A great sample Python project to write is Ping Sweeper, a small utility that inspects network hosts. This script will cover fundamental programming concepts, including print statements, loops, and functions.
What is Ping Sweeper?
A ping sweeper is a program that accepts a network address as input, pings hosts in the network, and outputs a list of dead and alive hosts. This is an easy way to estimate the number of online hosts in your network and find their IPv4 addresses.
As a beginner, building a ping sweeper is a great way to brush up on your Python basics. This hands-on mini-project will also refresh your understanding of networking fundamentals.
Prerequisites for your Ping Sweeper
Before starting the development process, you should make sure that you have the latest version of Python on your system.
Check if you can run Python by typing this command in the Command Prompt (for Windows users) or Terminal (for Unix/Linux systems) and pressing Enter.
This command should return the version of Python installed on your system. If it gives error similar to “python not found”, then you should install Python3 and then proceed with the following steps.
ping sweeper coding
There are several ways to create this script. Some will require you to install and import multiple modules. Here, you’ll take a minimalist approach that doesn’t have external dependencies other than critical OS modules.
Before you start coding, break down the requirements to better understand what functionality you’ll need to implement.