Crop Image in Circle | Crop Circle Image Online

Are you looking for a way to crop an image into a circular shape? You’ve come to the right place. In this blog post, we will introduce you to a free online tool that allows cropping of raster images, photos, or PSDs in a circle.

Crop Image in Circle Online

Crop images, avatars, or photos into a circular shape effortlessly with this free online web app to crop images in Circle.

How to Crop Image in Circle

  • Drop or upload your image file.
  • Please wait while the file uploads and opens.
  • After that, you will be redirected to input the parameters of crop circle.
  • Finally, click on the Crop Circle Image button.

Note: It is important to note that all input and output files are automatically deleted after 24 hours, so you can use the system with confidence.

Crop Image – Developer’s Guide

The Aspose.PSD library allows developers to integrate image cropping features into their applications programmatically. The API also enables developers to create, edit, convert, and manipulate PSD, PSB, and AI files.

Crop Image in C#

We can crop an image programmatically in C# by following the steps below:

string sourceFileName = "C:\\Files\\sample.psd";
string exportPathPsd = "C:\\Files\\CropTest.psd";
string exportPathPng = "C:\\Files\\CropTest.png";
using (RasterImage image = (RasterImage)Image.Load(sourceFileName))
{
var point = new Point(10, 10);
var size = new Size();
size.Width = 100;
size.Height = 100;
image.Crop(new Rectangle(point, size));
image.Save(exportPathPsd, new PsdOptions());
image.Save(exportPathPng, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}

Learn more about cropping or rotating PSD images in C#.

Crop Image in Java

Similarly, we can also crop an image programmatically using Java by following the steps below:

// This code example demonstrates how to crop a PSD image in Java
String sourceFile = "C:\\Files\\sample.psd";
String destName = "C:\\Files\\CroppingByRectangle_out.jpg";
// Load an existing image into an instance of RasterImage class
RasterImage rasterImage = (RasterImage)Image.load(sourceFile);
if (!rasterImage.isCached())
{
rasterImage.cacheData();
}
// Create an instance of Rectangle class with desired size,
//Perform the crop operation on object of Rectangle class and Save the results to disk
Rectangle rectangle = new Rectangle(20, 20, 20, 20);
// Crop
rasterImage.crop(rectangle);
rasterImage.save(destName, new JpegOptions());

You can learn more about cropping or rotating PSD images using Java in our detailed article.

Get a Free License

You can get a free temporary license to try Aspose.PSD without evaluation limitations.

Crop Image Online – Free Learning Resources

You can learn more about opening, viewing, converting, and manipulating PSD files without Adobe platforms. You can also explore other features of the library using the following resources:

Conclusion

In this article, we have learned how to crop an image into a circular shape using an online tool. We have also introduced you to a standalone API for developing your own image cropping applications. In case of any ambiguity, please contact us on our free support forum.

See Also