StayFile · On this deviceStayFile · 文件留在本地
Images to PDF.图片转 PDF。
Turn JPEG, PNG, or WebP pictures into one PDF, one image per page, on A4, Letter, or a page fitted to the picture.把 JPEG、PNG 或 WebP 做成一个 PDF,一张图一页,可选 A4、Letter,或贴合图片的页面。
Each picture becomes one page, built in this tab. JPEG and WebP are redrawn. PNG is embedded.每张图变成一页,在这个标签页里生成。JPEG 和 WebP 会重绘。PNG 按原样嵌入。
How it works它怎么处理
Images to PDF on StayFile turns JPEG, PNG, and WebP pictures into one PDF, one image per page. The download is named stayfile-images.pdf. It is a free page from Haimc (海明创), with no account and no upload. Put the list in the order you want, top to bottom, choose A4, Letter, or Fit image, and build. pdf-lib writes the PDF in this tab. Several photos are not collaged onto one sheet. A PDF you already have belongs in Merge or Split, not here.
StayFile 的图片转 PDF 把 JPEG、PNG 和 WebP 做成一个 PDF,一张图一页。下载文件名叫 stayfile-images.pdf。这是海明创(Haimc)的免费页面,没有账号,也不会上传。把列表按你要的顺序排好,从上到下,选择 A4、Letter 或贴合图片,然后生成。PDF 由这个标签页里的 pdf-lib 写出。好几张照片不会被拼到同一张纸上。你已经有的 PDF 请用合并或拆分,不要用这里。
The page checks the file bytes, not only the extension. JPEG, PNG, and WebP are accepted. HEIC, GIF, BMP, TIFF, SVG, and PDF are refused, even if the name ends in .jpg. A phone can pick pictures from the camera roll when the browser offers a JPEG, PNG, or WebP. An iPhone photo that is still HEIC is refused. Export a JPEG from the photos app and add that file. The original on the phone is untouched, because this page never receives it. Up to 40 images in one run, and each file must be 80 MB or smaller. An empty file is refused. Extra images past 40 are not added.
页面检查的是文件字节,不只是扩展名。接受 JPEG、PNG 和 WebP。HEIC、GIF、BMP、TIFF、SVG 和 PDF 会被拒绝,即使文件名以 .jpg 结尾也一样。当浏览器能提供 JPEG、PNG 或 WebP 时,手机可以从相册里选图。仍是 HEIC 的 iPhone 照片会被拒绝。请先在照片应用里导出 JPEG,再添加那个文件。手机里的原件不会被改动,因为这个页面根本收不到它。一次最多 40 张,每个文件不超过 80 MB。空文件会被拒绝。超过 40 张的部分不会被加进来。
PNG is embedded as PNG, so a transparent mark stays transparent, and the PNG’s own bytes, including any metadata stored inside them, are what go into the page. JPEG and WebP are drawn through the browser first, onto a white canvas, then saved as JPEG at quality 0.92. That redraw asks the browser to apply the photo’s stored rotation, so a phone picture that stored a rotation usually stands upright. WebP cannot be stored as WebP in the PDF this tool writes, so it becomes JPEG, and any transparency is flattened onto white. The camera’s EXIF, including location, is not written into that JPEG. This is not a cleaner for the original file on disk. The original still has whatever the camera wrote.
PNG 按 PNG 嵌入,透明标记会保持透明,写进页面的就是 PNG 自己的字节,包括字节里本来带的元数据。JPEG 和 WebP 会先经过浏览器,画到白色画布上,再按 0.92 的质量存成 JPEG。这次重绘会请浏览器套用照片里保存的旋转,所以带了旋转信息的手机照片通常会立起来。这个工具写出的 PDF 不能直接存放 WebP,所以 WebP 会变成 JPEG,透明部分铺到白色上。相机的 EXIF,包括位置,不会写进那张 JPEG。这不是对磁盘上原文件的清理。相机写进原件的东西,原件里还在。
A4 is selected when you open the page. A4 is about 595 by 842 points, and Letter is 612 by 792 points. On both, the picture is scaled uniformly inside a 36-point margin, half an inch, and centered. Nothing is cropped, and nothing is stretched out of proportion. If the photo is wider than it is tall, that page is landscape. A square photo stays portrait. Fit image drops the margin and makes the page match the picture at about 150 pixels per inch. The long edge of a fitted page is capped at 20 inches (1440 points), so a huge photo is scaled down instead of becoming an enormous page. There is no crop tool and no rotate button. If a JPEG is still sideways after the redraw, it did not carry rotation data. Export an upright JPEG and add that.
打开页面时选中的是 A4。A4 大约是 595 乘 842 点,Letter 是 612 乘 792 点。这两种尺寸都会把图片按比例缩进 36 点(半英寸)的页边里,并居中。不会裁切,也不会拉变形。照片比高更宽时,那一页用横向。正方形照片保持纵向。“贴合图片”去掉页边,让页面按大约 150 像素每英寸跟上图片。贴合页面的长边限制在 20 英寸(1440 点),所以超大照片会被缩小,而不是变成巨大的一页。这里没有裁剪工具,也没有旋转按钮。如果 JPEG 重绘之后仍然是横的,说明它自己没有带旋转信息。请导出一张已经摆正的 JPEG 再添加。
Do not use this tool for a contact sheet, a two-up handout, or a collage. Make that sheet in a photo app and add the sheet as a single image. Do not use it to pull pictures back out of a PDF, to merge existing PDFs, or to compress a PDF you already have. HEIC, GIF, and other formats stay refused. Reordering is the up and down buttons, not drag-and-drop. Thumbnails are local previews in this tab. Clear the list, or close the tab, and those previews go with it. A phone can build the PDF. Forty large photos can still run out of memory on that phone.
不要用这个工具做联系表、一页两张的讲义,或拼图。请先在照片应用里做好那一张,再把它作为单张图片加进来。不要用它从 PDF 里把图片抽出来,不要用它合并已有的 PDF,也不要用它压缩你已经有的 PDF。HEIC、GIF 和其他格式仍然会被拒绝。排序用的是上移和下移,不是拖拽。缩略图是这个标签页里的本地预览。清空列表,或关掉标签页,这些预览就一起丢掉。手机可以生成这份 PDF。四十张很大的照片,在那部手机上仍可能把内存用完。
Example例子
Four portrait photos of a signed form, and one landscape photo of a whiteboard, all JPEG from a phone. Choose A4, which is already selected. Move the whiteboard to the top if the meeting should be read first. You get five pages in stayfile-images.pdf. The form photos are portrait A4. The whiteboard page is landscape A4. Each picture sits inside a half-inch margin, centered, with nothing cropped. A sideways JPEG that carried rotation data stands upright. The photos in the camera roll are not modified, and they are not uploaded.
四张竖拍的签字表,加一张横拍的白板,都是手机里的 JPEG。选择 A4,打开页面时就是这一档。如果会议内容应该先看,把白板上移到最上面。stayfile-images.pdf 里会有五页。表格照片是纵向 A4。白板那一页是横向 A4。每张图都缩在半英寸页边里,居中,不会被裁掉。带了旋转信息的横置 JPEG 会立起来。相册里的照片不会被修改,也不会被上传。
A designer has a PNG logo with a transparent background and three product photos in WebP. The logo stays PNG, so the transparency survives on its page. The WebP photos are redrawn as JPEG on white, so a translucent edge becomes white, not clear. Choose Letter for a US printer. Wide product shots become landscape Letter pages. The square logo stays a portrait Letter page. Location data from the WebP files is not copied into the PDF. The PNG is embedded as itself, so do not treat this page as a tool that strips the originals.
设计师有一张背景透明的 PNG 标志,和三张 WebP 产品图。标志仍按 PNG 嵌入,那一页上的透明会留下来。WebP 照片会被重绘成铺在白色上的 JPEG,半透明的边缘会变成白色,而不是透明。要交给美国的打印机就选 Letter。较宽的产品图会变成横向的 Letter 页。正方形的标志仍是纵向的 Letter 页。WebP 里的位置信息不会抄进 PDF。PNG 是按自身嵌入的,所以不要把这个页面当成清理原件的工具。
An assignment asks for one PDF of eight homework photos. Two of them are still HEIC from an iPhone, and one is a GIF of a diagram. The HEIC rows and the GIF row error, and the Build button stays off until you remove them. Export JPEG copies of the HEIC shots, and export the diagram as PNG if the transparency matters or as JPEG if it does not. Add those files. Forty is the ceiling, so eight is fine. Fit image is the wrong choice if the teacher asked for A4. Leave A4 selected so every page is the same paper, with a margin, instead of eight differently sized pages.
作业要求把八张照片做成一个 PDF。其中两张仍是 iPhone 的 HEIC,一张是示意图的 GIF。HEIC 和 GIF 那几行会报错,你把它们移除之前,生成按钮一直是关的。把 HEIC 导出成 JPEG;示意图如果要留透明就导出 PNG,否则导出 JPEG。再添加这些文件。上限是 40 张,八张没问题。如果老师要求 A4,就不要选贴合图片。保持 A4,这样每一页都是同一种纸,并且有页边,而不是八张尺寸各不相同的页面。
Disclaimer说明
StayFile does not check that you have the right to use the pictures. JPEG and WebP are redrawn in the browser, so the embedded image is not a byte-for-byte copy, transparency becomes white, and EXIF such as location is not written into the PDF. That is not a promise that the original photo on disk was scrubbed. PNG is embedded, transparency included, metadata chunks and all. HEIC, GIF, BMP, TIFF, SVG, and PDF are not accepted. The originals you picked are not modified.
StayFile 不检查你是否有权使用这些图片。JPEG 和 WebP 在浏览器里重绘,嵌进 PDF 的图像不是逐字节副本,透明会变成白色,位置这类 EXIF 也不会写进 PDF。这并不保证磁盘上的原始照片已被清除这些信息。PNG 按原样嵌入,包括透明,也包括里面的元数据块。不接受 HEIC、GIF、BMP、TIFF、SVG 和 PDF。你选中的原件不会被修改。
One image becomes one page. There is no collage, no crop, and no rotate button. A4 and Letter use a 36-point margin and do not crop. Fit image has no margin and caps the long edge at 20 inches. One run accepts 40 images, 80 MB each. A phone can build the file, but a long list of large photos can exhaust it. Closing the tab discards the previews and the in-memory PDF. It does not delete a download you already saved.
一张图变成一页。没有拼图,没有裁剪,也没有旋转按钮。A4 和 Letter 使用 36 点页边,并且不会裁切。贴合图片没有页边,长边限制在 20 英寸。一次最多 40 张,每个不超过 80 MB。手机可以生成文件,但一长串大照片仍可能把内存用完。关掉标签页会丢掉预览和内存中的 PDF。它不会删除你已经保存的下载。
FAQ常见问题
Which image formats work?支持哪些图片格式?
JPEG, PNG, and WebP, checked from the file bytes. HEIC, GIF, BMP, TIFF, SVG, and PDF are refused, even when the file name looks like a JPEG. A PDF belongs in Merge, Split, or Compress. Export HEIC to JPEG in the photos app before you add it.
JPEG、PNG 和 WebP,按文件字节判断。HEIC、GIF、BMP、TIFF、SVG 和 PDF 会被拒绝,即使文件名看起来像 JPEG 也一样。PDF 请用合并、拆分或压缩。添加之前,请先在照片应用里把 HEIC 导出成 JPEG。
Are the photos uploaded?照片会被上传吗?
No. Thumbnails are local previews in this tab, made from the files you picked. Building the PDF does not call an API. pdf-lib runs in the page, and the browser saves stayfile-images.pdf. Clear or close the tab and the previews in memory are discarded. The download you saved stays where the browser put it.
不会。缩略图是这个标签页里的本地预览,来自你选中的文件。生成 PDF 不会调用接口。pdf-lib 在页面里运行,浏览器把文件存成 stayfile-images.pdf。清空或关掉标签页,内存里的预览就被丢掉。你已经保存的下载,仍在浏览器存放它的地方。
Can I put two images on one page?一页能放两张图吗?
Not in this version. One image, one page. There is no contact sheet, no two-up, and no collage. If you need several pictures on one sheet, make that sheet in a photo app and add the sheet as a single image. To combine PDFs you already have, use Merge.
这一版不行。一张图,一页。没有联系表,没有一页两张,也没有拼图。如果需要好几张图在同一页上,请先在照片应用里做好,再把那一张图加进来。已经有的 PDF 要合在一起,请用合并。
Does location data stay in the PDF?位置信息会留在 PDF 里吗?
StayFile does not copy EXIF into the PDF for JPEG and WebP. Those files are redrawn, which drops location and other camera data from the embedded image. PNG bytes are embedded as themselves, so metadata stored inside the PNG stays inside that embedded image. Do not treat this as a metadata cleaner for the original file on disk. The original is not modified.
对 JPEG 和 WebP,StayFile 不会把 EXIF 抄进 PDF。这些文件经过重绘,嵌进页面的图像不再带位置和其他相机数据。PNG 的字节按自身嵌入,所以存在 PNG 里面的元数据会留在那张嵌入图像里。不要把这当成对磁盘上原文件的元数据清理。原件不会被修改。
How many images, and what is the margin?能放多少张,页边是多少?
40 images in one run, and each file must be 80 MB or smaller. A4 and Letter use a 36-point margin, half an inch. The picture is scaled to fit inside that margin and centered, not cropped. Fit image has no margin: the picture is the page, at about 150 pixels per inch, with the long edge capped at 20 inches.
一次 40 张,每个文件不超过 80 MB。A4 和 Letter 使用 36 点页边,也就是半英寸。图片按比例缩进页边里并居中,不会被裁切。贴合图片没有页边:图片本身就是页面,大约 150 像素每英寸,长边限制在 20 英寸。
Why did a phone photo stay sideways, or turn into JPEG?为什么手机照片还是横的,或者变成了 JPEG?
JPEG and WebP are redrawn so the browser can apply stored rotation, and that redraw is saved as JPEG at quality 0.92. A photo that is still sideways did not carry rotation data. Export an upright JPEG and add that file. There is no rotate button here. WebP always becomes JPEG, and its transparent pixels are painted white. PNG is not redrawn, so it stays PNG.
JPEG 和 WebP 会重绘,好让浏览器套用文件里保存的旋转,重绘结果按 0.92 的质量存成 JPEG。如果一张照片仍然是横的,说明它没有带旋转信息。请导出一张已经摆正的 JPEG 再添加。这里没有旋转按钮。WebP 一定会变成 JPEG,透明像素会被涂成白色。PNG 不会重绘,所以仍然是 PNG。
Which page size should I pick?该选哪种页面大小?
A4 is selected when the page opens. Use it when the packet should be A4 paper. Letter is the US paper size, 612 by 792 points. On both, a wide picture becomes a landscape page and a square stays portrait. Fit image makes each page the shape of that picture, which is useful for a full-bleed photo and awkward when someone asked for one paper size. Nothing is cropped in any of the three.
打开页面时选中的是 A4。材料需要 A4 纸时就用它。Letter 是美国纸张,612 乘 792 点。这两种尺寸下,较宽的图片会变成横向页面,正方形仍是纵向。贴合图片会让每一页跟着那张图的形状走,适合满版照片;如果对方要求同一种纸,就不合适。三种做法都不会裁切画面。
Can I do this on a phone, and is it free?手机上能做吗,收费吗?
It is free, with no account, in the phone’s browser or on a computer. Nothing is uploaded. Use the file picker, then the up and down buttons to set the order. HEIC from an iPhone camera roll is refused until you export a JPEG. Forty large photos can exhaust a phone’s memory. StayFile does not install an app and does not edit the pictures in your camera roll.
免费,不需要账号,手机浏览器和电脑都可以用。什么都不会上传。用文件选择器添加,再用上移和下移排顺序。iPhone 相册里的 HEIC 在你导出 JPEG 之前会被拒绝。四十张很大的照片可能把手机内存用完。StayFile 不会安装应用,也不会改你相册里的照片。