# preview-service - 이미지/문서/비디오파일의 썸네일 이미지 생성하는 오픈소스

> Clean Markdown view of GeekNews topic #1164. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=1164](https://news.hada.io/topic?id=1164)
- GeekNews Markdown: [https://news.hada.io/topic/1164.md](https://news.hada.io/topic/1164.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2019-12-29T11:17:57+09:00
- Updated: 2019-12-29T11:17:57+09:00
- Original source: [github.com](https://github.com/fpurchess/preview-service)
- Points: 7
- Comments: 2

## Topic Body

도커로 제공되며 HTTP로 호출하여 사용.

대부분의 파일포맷 지원

ai,eps,ps,pdf

bmp,gif,ico,jpg,png,psd,svg

doc,ppt,xls,od*,htm,csv,key,page

mp4,mov,wmv,avi

내부적으로 ImageMagic,LibreOffice,ffmpeg 등을 사용하여 위 파일들의 썸네일을 생성.

## Comments



### Comment 803

- Author: xguru
- Created: 2019-12-29T11:18:51+09:00
- Points: 1

이 코드는 파이썬용 패키지인 Preview-Generator 를 웹서비스 형태로 래핑한 소스입니다.

https://github.com/algoo/preview-generator

파이썬 코드에서 직접 쓰신다면 위를 이용하셔도 됩니다만,

변환용으로 사용하는 디펜던시 패키지가 워낙 많아서 서버에 같이 설치하기엔 좀 부담이 되긴 합니다.

### Comment 804

- Author: xguru
- Created: 2019-12-29T11:19:07+09:00
- Points: 1
- Parent comment: 803
- Depth: 1

https://github.com/algoo/preview-generator/blob/develop/doc/supported_mimetypes.rst

지원파일포맷 리스트를 찬찬히 보니 HWP가 있는데, LibreOffice를 이용하는 것으로 보입니다.
