4월, 2014의 게시물 표시

multiDensityExportForAndroid.jsx

안드로이드 앱 제작시 사용될 화면 밀도별 이미지 리소스들을 한 번에 리사이즈해서 각각의 폴더에 내보내기를 실행하는 스크립트입니다. 포토샵 및 일러스트레이터에서 파일 > 스크립트 메뉴를 통해 실행할 수 있으며, CS6 버전에서 테스트되었습니다. http://www.roundrect.kr/desktop/multi-density-export/ 아래 코드의 WORK_FOLDER에 지정된 경로를 작업 환경에 맞게 사용자가 미리 수정해야 합니다. 또한, 해당 폴더 아래에 drawable_mdpi, drawable_hdpi등 출력 파일들이 저장될 폴더들도 미리 만들어 두어야 합니다. 실행시 사용자에게 mdpi로 출력할 이미지의 가로 픽셀 크기를 물어봅니다. 이 값을 기준으로 각각의 화면 밀도에 맞게 리사이즈 됩니다. 출력될 파일명은 현재 활성화된 레이어의 이름을 사용합니다. /* * multiDensityExportForAndroid.jsx * * Copyright (c) 2014. RoundRect Co.,Pte. * Author: Elex * http://www.roundrect.kr/desktop/multi-density-export/ * * licensed under a Creative Commons BY-NC-SA * http://creativecommons.org/licenses/by-nc-sa/4.0/ * * This script file is to export resized files for multiple densities in a single process * from Adobe Photoshop and/or Illustrator mainly for Android application development. * It's been tested with both Adobe Photoshop CS 6 and Adobe Illustrator CS 6. * * * Before running this