> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/knowledge-base/113-optimising-very-large-image-files.md).

# 매우 큰 이미지 파일 최적화

지나치게 큰 이미지 파일이나 부적절한 파일 형식을 사용하는 이미지 파일은 컴파일 과정을 크게 지연시키고 컴파일 시간 초과를 유발할 수 있습니다. 이 도움말 문서는 큰 이미지 파일을 다루는 방법과 적절한 이미지 파일 형식을 선택하는 방법에 대한 몇 가지 제안을 설명합니다.

각각의 크기가 1MB를 초과하는 큰 이미지 파일의 경우, 래스터 이미지(래스터 PDF 이미지를 포함)는 예를 들어 가로 또는 세로 1200px 정도로 크기를 조정하여 파일 크기를 더 작게 만드는 것을 권장합니다. 이미지 편집 프로그램으로 이를 수행할 수 있으며, ImageMagick을 사용하는 경우 다음을 사용할 수 있습니다 [`convert` 명령을 사용합니다](http://www.imagemagick.org/Usage/resize). macOS에서는 다음이 [`sips -Z` 명령을 사용합니다](http://lifehacker.com/5962420/batch-resize-images-quickly-in-the-os-x-terminal) 매우 유용합니다.

다음 형식으로 저장된 사진 이미지는 `.png` 매우 큰 파일 크기를 초래할 수도 있습니다: `.jpg` 는 일반적으로 다음에 대해 훨씬 더 공간 효율적인 형식입니다 *사진*. *선화, 그래프 및 다이어그램* 은/는 다음 형식으로 저장하는 것이 더 좋습니다 `.png` 또는 `.pdf`, 일반적으로. `.pdf` 이미지는 다음에 비해 더 빠르게 컴파일될 수도 있습니다 `.png` 파일 크기가 비슷하다면, 컴파일 과정에서 다음을 호출할 필요가 없기 때문입니다 `libpng`.

다음의 경우에는 `.eps` 이미지는 다음 형식으로 변환할 것을 권장합니다 `.pdf`, PDF 형식은 선화의 벡터 특성을 유지하면서도 종종 더 작은 파일 크기를 만들기 때문입니다. 해당 [`epstopdf` 명령을 사용합니다](https://www.ctan.org/pkg/epstopdf) 유용합니다. GhostScript도 설치되어 있어야 합니다.

반드시 사용해야 한다면 `.eps` 프로젝트에서 이미지 파일을, 때때로 `.eps` 파일이 해당 파일을 내보낸 애플리케이션의 오류/잘못된 설정 때문에 불필요하게 큰 경우가 있습니다. 내보내기 설정을 수정해 보거나, GhostScript로 파일을 다시 처리한 뒤 파일 크기를 비교해 볼 수 있습니다:

```
gs -o outputfile.eps -sDEVICE=epswrite originalfile.eps
```

문서 작업 중 컴파일/렌더링 시간을 조금 줄이고 싶다면, 다음과 같이 작성하여 "draft" 모드를 켜서 컴파일 속도를 높일 수 있습니다 `\documentclass[draft]{…}` 를 문서 클래스 선언에 넣으십시오. 이미지를 PDF로 렌더링하지 않는 것(및 몇 가지 다른 작업)을 통해 "draft" 옵션은 종종 컴파일 시간을 줄이는 데 도움이 되며, 큰 문서를 작업할 때 유용합니다.

작업 중인 프로젝트의 특정 부분에 대해 그래픽을 켜거나 끌 수도 있습니다:

```latex
\setkeys{Gin}{draft=false}
...여기의 모든 \includegraphics는 완전히 렌더링되므로,
이 문서 부분의 이미지를 확인할 수 있습니다..
\setkeys{Gin}{draft}
...여기의 모든 \includegraphics는 그냥 빈 프레임으로 표시됩니다.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/knowledge-base/113-optimising-very-large-image-files.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
