Search found 2 matches

by neiyo7
2018-12-08T20:58:07-07:00
Forum: Developers
Topic: Im4java in java
Replies: 3
Views: 10929

Re: Im4java in java

I know that, I want to change the depth 24 to 8 , reduce image size.
It's also a way to adjust the quality. I want to see if there are other ways to solve this problem.
by neiyo7
2018-12-08T08:26:43-07:00
Forum: Developers
Topic: Im4java in java
Replies: 3
Views: 10929

Im4java in java

public static boolean zoomImage(String srcImagePath, String newImagePath, Integer width, Integer height, int qual)
{
try
{
IMOperation op = new IMOperation();
op.thumbnail(width, height);
op.gravity("center");
op.background("white");
op.depth(8);//No effect!!
op.extent(width, height);
op ...