Add transparent PNG.

This commit is contained in:
akwizgran
2019-12-12 13:23:14 +00:00
parent 44411ab224
commit 24a63b08c0
2 changed files with 8 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View File

@@ -3,36 +3,35 @@ package org.briarproject.briar.android.attachment;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.logging.Logger;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import static android.os.Build.VERSION.SDK_INT;
import static java.util.logging.Logger.getLogger;
import static org.junit.Assume.assumeTrue;
@RunWith(AndroidJUnit4.class)
public class AttachmentCreationTaskTest
extends AbstractAttachmentCreationTaskTest {
private static Logger LOG =
getLogger(AttachmentCreationTaskTest.class.getName());
@Test
public void testCompress100x100Png() throws Exception {
public void testCompressSmallPng() throws Exception {
testCompress("red-100x100.png", "image/png");
}
@Test
public void testCompress500x500Png() throws Exception {
public void testCompressMediumPng() throws Exception {
testCompress("blue-500x500.png", "image/png");
}
@Test
public void testCompress1000x2000Png() throws Exception {
public void testCompressLargePng() throws Exception {
testCompress("green-1000x2000.png", "image/png");
}
@Test
public void testCompressTransparentPng() throws Exception {
testCompress("transparent-100x100.png", "image/png");
}
@Test
public void testCompressVeryHighJpg() throws Exception {
testCompress("error_high.jpg", "image/jpeg");