上传的业务文档的最大文件大小和像素
我正在创建一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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?