Code Monkey home page Code Monkey logo

aspose.imaging-for-java's Introduction

GitHub all releases GitHub

Java API for Image Processing

Imaging API is a library offering advanced image processing features. Developers can create, edit or convert images in their own application. Also Aspose. Imaging library supports drawing and work with graphic primitives. Image export and conversion (including uniform multi-page image processing) is the one of API core features along with image transformations (resize, crop, flip&rotate, binarization, grayscale, adjust), advanced image manipulation features (filtering, dithering, masking, deskewing) and memory optimization strategies.

Directory Description
Examples A collection of Java examples that help you learn the product features.
Plugins Plugins that will demonstrate one or more features of Aspose.Imaging for Java.

Directory Description
Examples A collection of Java examples that help you learn the product features.
Plugins Plugins related to Aspose.Imaging for Java product.

Imaging API Features

Load & Save Image Formats

Raster Formats: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, DICOM, TGA, ICO
Metafiles: EMF, WMF
Compressed metafiles: EMZ, WMZ
Other: WebP, Svg, Svgz (compressed Svg)
Animation: Apng

Save Images As

Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas
AutoCAD: Dxf

Load Images

Various: DjVu, DNG, ODG, EPS, CMX, CDR, DIB, OTG, FODG

Platform Independence

Aspose.Imaging for Java can be virtually run in any OS where Java is installed (since JDK 1.6)

  • Windows (since 7)
  • Linux
  • MacOS
  • Any OS where Java is installed.

Aspose.Imaging works for both x86 and x64 versions of the above listed operating systems.

Note: In Linux OS, it is recommended to install the package with Microsoft compatible fonts (e.g. sudo apt-get install ttf-mscorefonts-installer).

Get Started with Aspose.Imaging for Java

Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.BarCode for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Imaging for Java from Maven Repository documentation page.

Resize a JPG Image

try (Image image = Image.load(dir + "template.jpg"))
{
    image.resize(300, 300);
    image.save(dir + "output.jpg");
}

Create & Manipulate PNG via API

// image width and height
int width = 500;
int height = 300;

// where created image to store
String path = "createdImage.png";
// create options
try (PngOptions options = new PngOptions())
{
	options.setSource(new FileCreateSource(path, false));
	try (PngImage image = (PngImage)Image.create(options, width, height))
	{          
		// create and initialize an instance of Graphics class 
		// and Clear Graphics surface
		Graphics graphic = new Graphics(image);
		graphic.clear(Color.getGreen());
		// draw line on image
		graphic.drawLine(new Pen(Color.getBlue()), 9, 9, 90, 90);        

		// resize image
		int newWidth = 400;
		image.resizeWidthProportionally(newWidth, ResizeType.LanczosResample);  

		// crop the image to specified area
		com.aspose.imaging.Rectangle area = new com.aspose.imaging.Rectangle(10,10,200,200);    
		image.crop(area);
	   
		image.save();
	}
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

aspose.imaging-for-java's People

Contributors

adam-skelton avatar adeelilyas2014 avatar aspose-imaging-gists avatar babar-raza avatar fahadadeel avatar farooqsheikhpk avatar fatimaahmed avatar iqbal-aspose avatar m-ikramulhaq avatar mannanfazil avatar masood-anwer avatar mudassirfayyaz avatar muhammad-adnan-ahmad avatar rizwanniazigroupdocs avatar saqib-razzaq-aspose avatar saqibmasood avatar saqibrazzaq avatar saudaspose avatar shahzad-latif avatar shoaibkhan-aspose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspose.imaging-for-java's Issues

DicomOptions() getting stucked

I'm trying to add this library to compress some Dicom images.
Creating an object using DicomOptions options = new DicomOptions(); will stuck the process and no error comes out, no logs and it doesn't move on to next lines.
Java version: java version "1.8.0_202"
Library version: aspose-imaging-21.11-jdk16.jar
(I used this library version since aspose-imaging-18.2-jdk16.jar doesn't contain DicomOptions.)
Anyone had this issue?

Edited: This seems to be the error that comes up using try-catch:

java.lang.NoSuchMethodError: com.aspose.imaging.imageoptions.DicomOptions.setFullFrame(Z)V

Aspose PHP

My main 3 steps/tasks are like

  1. Load .tiff image in m chrome browser with zoom in zoom out and also can rotate it
  2. Get coordinates of all the texts from image
  3. Highlight specific text from particular image using the coordinates

These all 3 above task can do via aspose any demo for it?

Do i need to purchase aspose for above 3 stuffs? Please make sure i want it only in PHP / LARAVEL.

ResolutionSetting has no effect on outputs

I want to convert an image (png, jpg, jpeg, tiff) to TIFF with a new resolution. I tried a number of examples in this repo and the resolution of outputs remained unchanged.
SavingRasterImageToTIFFWithCompression.java

     TiffOptions options = new TiffOptions(TiffExpectedFormat.Default);
        options.setBitsPerSample(new int[] { 8, 8, 8 });
        options.setPhotometric(TiffPhotometrics.Rgb);
      // already tried        options.setResolutionSettings(new ResolutionSetting(100, 100));
        options.setXresolution(new TiffRational(200));
        options.setYresolution(new TiffRational(200));
        options.setResolutionUnit(TiffResolutionUnits.Inch);


I also looked into other image outputs like JPEG. They have the same problem
ConvertTIFFToJPEG.java


                JpegOptions saveOptions = new JpegOptions();
                // The provided tiff's resolution is (Horizontal=200,Vertical=100), I put some numbers and outputs didn't change
                saveOptions.setResolutionSettings(new ResolutionSetting(tiffFrame.getHorizontalResolution(), tiffFrame.getVerticalResolution()));

SettingResolution.java. This one has a bug. It always produced that image
image

            // Create an instance of PngOptions, Set the horizontal & vertical resolutions and Save the result on disc
            PngOptions options = new PngOptions();
            options.setResolutionSettings(new ResolutionSetting(72, 96));
            png.save(Utils.getOutDir() + "SettingResolution_output.png", options);

getting warning in php

Already have tried and installed jvm or jdk
image

Still getting errors.
Do i need to setup .env varibles?
Doyou have any full guidance or call support?
I want to dsiplay tiff image with zooming and roation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.