Skip to content

Resolution issue while transforming the image through Blobkey. #790

@yasikmondal

Description

@yasikmondal

I am facing some resolution issue while transforming the image through Blobkey.

The resolution of transformed images are getting poor. Can you please let me know if there is any option or parameter which needs to be set to maintain the same resolution as original image. Below are the code snippet for resizing and transforming. I am running my app from Google Cloud App Engine.

Creating BlobKey: 

BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
BlobKey blobKey = blobstoreService.createGsBlobKey("/gs/" + bucket + "/" + object.getName());

Creating Image from Blobkey:

Image blobImage = ImagesServiceFactory.makeImageFromBlob(blobKey);

Transforming and resizing Image with custom height and width:

Transform resize = ImagesServiceFactory.makeResize(width, height);
Image resizeImage = imagesService.applyTransform(resize, blobImage);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions