跳到主要内容

图片 - 按以下方式旋转 EXIF 数据 - 自动方向 Make

旋转 EXIF 数据 是一个 Make 模块 PDF4me 读起来像是 EXIF 方向标签 JPG 或者 PNG 它可以自动将图像旋转到正确的竖直位置。在将智能手机拍摄的照片上传到图库、打印或进行其他操作之前,可以使用此功能来校正照片的横屏方向。 PDF无需手动旋转角度。

本模块的功能

PDF4me 旋转 EXIF 数据 提供基于以下内容的自动图像旋转 EXIF 方向元数据 Make 场景。它读取 EXIF 从图像中提取方向标签(智能手机和相机照片中常见),并应用正确的旋转,从而实现正确的照片显示、打印准备、网络发布和自动方向校正工作流程。

相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客

我如何验证我的身份 Make 设想?

要访问 PDF4me 网站 API 通过 Make每个请求都必须包含一个有效的 联系 握着你的 PDF4me API 密钥。这实现了您与他人之间安全、经过身份验证的通信。 Make 场景和 PDF4me的图像旋转服务。

您不容错过的重要事实

无需旋转角度
该模块读取 EXIF 方向标签 直接旋转,因此可以根据每张图片进行调整,而无需像手动旋转模块那样设置固定的角度值。
图像类型必须与实际格式匹配
将图像类型设置为 JPG 或者 PNG 为了与实际文件匹配。声明的类型与实际格式不匹配会导致无法正确处理。
不包含 EXIF 数据的图像将保持不变。
屏幕截图、扫描文档或已去除元数据的图像没有 Orientation 标签可供读取,因此该模块会保留其原有方向。
PDF4me 的“根据 EXIF 数据旋转”模块已配置,文件映射自之前的模块,图像文件名和图像类型均设置为 JPG,以实现自动方向校正。

映射源图像,设置图像文件名和图像类型。该模块读取 EXIF 方向标签,自动旋转图像。

旋转的参数有哪些 EXIF 数据需求?

必需的: 必须提供连接信息、文件、图像文件名和图像类型。

范围必需的它的作用例子
ConnectionRequiredPDF4me API connection. Click Add and paste your API key the first time. Reused automatically across all PDF4me modules in your scenarios.My PDF4me connection
FileRequiredBinary content of the source image. Map from Dropbox, Google Drive, HTTP, or any previous module that outputs image binary data.1. Data
Image File NameRequiredFilename of the image with extension. Map from the previous module output or set explicitly.photo.jpg
Image TypeRequiredFormat of the source image. Must match the actual file: JPG for JPEG images, PNG for PNG images.JPG

输出

场地类型它包含什么
Image NameStringOutput image filename with corrected orientation.
Image DataBufferThe image with EXIF-based rotation already applied, ready for upload or downstream processing.

典型配置

工作流程示例Common Make scenario patterns using Rotate by EXIF Data.
Dropbox 新上传内容 → 自动更正照片库
  1. 当上传文件夹中有新照片时,Dropbox 监视文件触发器会触发。
  2. 如果上传是批量操作,则迭代器会处理每个新上传的图像。
  3. 通过 EXIF 数据旋转可利用图像自身的 EXIF 标签校正图像方向。
  4. Dropbox 上传步骤会将更正后的图像保存到主照片库文件夹。
  5. 目录索引更新步骤会使用更正后的文件刷新图书馆列表。
产品照片上传 → 方向校正 → CDN 发布
  1. 当店铺上传新的产品照片时,会触发一个事件。
  2. 通过 EXIF 数据旋转可在后续进行任何调整大小或压缩之前校正方向。
  3. 压缩图像步骤可以选择性地减小文件大小,从而加快页面加载速度。
  4. 上传到 CDN 步骤会发布已更正、优化的图像。
  5. 产品记录更新步骤会将更正后的图片 URL 链接到产品列表中。
扫描的检验照片 → 正确方向 → PDF 报告
  1. 一款移动巡检应用程序会将现场拍摄的照片上传到共享文件夹。
  2. 通过 EXIF 数据旋转可校正在场地周围移动时拍摄的任何横向或倒置的照片。
  3. 使用文档生成模块将校正后的图像嵌入到 PDF 报告中。
  4. 最终报告将上传至共享的检查档案库。
  5. 邮件通知会提醒审核经理报告已准备就绪。

实用技巧

Image Type must match the real file format
Setting Image Type to PNG for a file that is actually a JPG (or vice versa) can prevent correct processing. Confirm the format before mapping it in.
Run this before resizing or compressing
Apply EXIF rotation first in your scenario, then resize or compress. Correcting orientation after a resize can compound cropping issues on non-square images.
Re-saved images may have lost EXIF data
If a photo has already passed through another editor or platform that strips metadata, there may be no Orientation tag left to read, and the image will pass through unrotated.
Different phone models write different orientation values
The EXIF Orientation tag can be any value from 1 to 8, not just "rotated 90 degrees." The module handles all standard EXIF orientation values, including mirrored orientations.
This does not read GPS or camera-model EXIF fields
Rotate by EXIF Data uses only the Orientation tag. Use Image - Extract Metadata if your workflow also needs GPS coordinates, camera model, or capture timestamp.
Screenshots typically have no orientation tag
Screenshots and many desktop-generated images never carry an EXIF Orientation tag, so this module has nothing to correct on them and will pass them through unchanged.

速查表

场地价值
ModuleRotate by EXIF Data
ConnectionPDF4me API key
FileBinary image content from a previous module
Image File Namefilename.jpg or filename.png
Image Type (JPEG)JPG
Image Type (PNG)PNG
Rotation angle inputNone needed, read from EXIF tag automatically
Output fieldsImage Name, Image Data

常见问题解答

What is EXIF orientation and why do photos appear sideways?+
Many smartphone and camera sensors always capture image data in the same physical orientation and record which way the device was actually held in the EXIF Orientation tag (a value from 1 to 8) instead of rotating the pixel data itself. Viewers that ignore this tag display the photo sideways or upside down even though the file itself is fine. Rotate by EXIF Data reads that tag and physically rotates the pixels to match, so the image displays correctly everywhere, including viewers that do not read EXIF metadata. See this <a href="https://superuser.com/questions/36645/how-to-rotate-images-automatically-based-on-exif-data" target="_blank" rel="noopener noreferrer">community explanation of EXIF-based auto-rotation</a> for more background.
Do I need to specify a rotation angle manually?+
No. The module reads the EXIF Orientation tag automatically and applies the correct rotation without you specifying degrees. This is different from a manual Rotate module where you set a fixed angle; EXIF-based rotation adapts per image based on how each photo was actually captured.
What happens if an image has no EXIF orientation data?+
If the source image has no EXIF Orientation tag (common with screenshots, scanned documents, or images already re-saved without metadata), the module leaves the image orientation unchanged since there is no tag to read. Verify Image Type matches the actual file format before running the module, since a mismatched type can prevent correct processing.
How is this different from the general Rotate an Image module?+
The general Rotate an Image module applies a fixed angle you specify (e.g. 90 or 180 degrees) to every image. Rotate by EXIF Data instead reads each image's own Orientation tag and applies whatever correction that specific photo needs, which is why it works well on batches of photos with mixed orientations from different phones or cameras.

行业应用案例及应用

  • 图片库:照片集中正确的方向
  • 库存照片为图库准备图片
  • 活动摄影修复活动照片批次中的方向问题
  • 肖像校正确保正确的纵向方向

相关操作

在其他平台上执行相同任务

获取帮助