上传的业务文档的最大文件大小和像素

发布于 2024-10-09 19:00:36 字数 313 浏览 0 评论 0原文

我正在创建一个 php 表单,它接受各种格式(.pdf、.doc、.tiff、.jpeg 等)上传的业务文档,并且我需要限制上传的文件的大小。限制文件大小对我来说很简单,但我不确定是否还应该限制最大高度/宽度,这也是可用的选项。

我偶尔需要将这些文档打印到 8.5 X 11 英寸的纸张上并使其清晰易读,但并不真正关心图像是否打印出来。我应该限制像素大小还是限制文件大小是多余的?如果是这样,你们对最大高度/宽度(例如 5MB 文件大小限制)有什么建议吗?我真的不知道像素大小和图像大小之间的关系是什么,或者扫描图像的常见像素大小是什么。

另外,每页清晰打印的合理尺寸期望是多少?

I am creating a php form that accepts an upload of business documents in a variety of formats .pdf, .doc, .tiff, .jpeg, etc. and I need to restrict the size of the files that are uploaded. It's trivial for me to restrict the file size, but I'm not sure if I should also restrict the max height/width, which are also available options.

I will need to occasionally print these documents to 8.5 X 11inch paper and have them be legible, but don't really care if images come out. Should I restrict the pixels sizes or is that redundant with restricting the file size? If so, do you guys have a recommendations for max height/width for, say, a 5MB file size limit? I really have no idea what the relationship between pixel size and image size is or what the common pixel sizes are for scanned images.

Also, what would be a reasonable size expectation for a legible print per page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月苍老的讽刺 2024-10-16 19:00:36

8.5 X 11 英寸,300 dpi => 2550 x 3300 像素(或 3300 x 2550 像素)。但我不确定这对于检查尺寸是否有用:如何知道用户是否想要高分辨率?

8.5 X 11 inch with 300 dpi => 2550 x 3300 px (or 3300 x 2550 px). But i'm not sure that's usefull to check sizes: how to know if the user want an hight resolution?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文