Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when set scaletype to CENTER_INSIDE,how to save filtered image with no black border? #519

Open
whoami-I opened this issue Mar 11, 2021 · 2 comments

Comments

@whoami-I
Copy link

Future Task

What is the motivation?

What kind of solution can be considered?

What do you want to discuss?

Please add relevant labels


Bug Reporting

Steps to Reproduce

Actual Results (include screenshots)

Expected Results (include screenshots)

URL

OS details

  • Device:
  • OS:

Please add relevant labels

@whoami-I
Copy link
Author

whoami-I commented Mar 11, 2021

for example ,this is original image
c604f64e5ad5e060a5646ea97268e7b2
but the saved image is this one:
1615454953420

@chirag-deshwal
Copy link

In My case, I use ImageView in the layout file on the filter apply so to capture a Bitmap set bitmap into Image View.

When changing Image Change Gpuimage & ImageView at the same time

GPUImage filterLoader;
ImageView view_filter;

// Inslize the View
view_filter = findViewById(R.id.view_filter); // Form your layout file
filterLoader = new GPUImage(this); // Just only in java code Not a child for any layout or View

//When filter apply change the Image
filterLoader.setFilter(new GPUImageGlassSphereFilter()); // Set Filter

setImage(filterLoader.getBitmapWithFilterApplied()); // Capture bitmap

// Fill the Bitmap
private void setImage(Bitmap fill) {
view_filter.setImageBitmap(fill);
filterLoader.setImage(fill);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants