본문 바로가기 메뉴 바로가기

ABBO 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ABBO 기술 블로그

검색하기 폼
  • 분류 전체보기 (465)
    • AI Trend (2)
    • Git (12)
    • Server (242)
    • Client (69)
    • Apple (31)
    • Study (109)
  • 방명록

java image (1)
[Java] 이미지를 압축해보고 변환해보자

이미지 파일을 파라미터로 받아 destination(저장할 폴더의 디렉터리)에 압축된 이미지를 저장하는 소스입니다. public static void compressImage(File imageFile, String destination) throws Exception { File compressedImageFile = new File(destination + imageFile.getName()); InputStream is = new FileInputStream(imageFile); OutputStream os = new FileOutputStream(compressedImageFile); float quality = 0.5f; BufferedImage image = ImageIO.read(is); I..

Server 2021. 1. 21. 17:43
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바