ios icon indicating copy to clipboard operation
ios copied to clipboard

Apple ProRaw DNG image data destroyed during upload

Open Sciencentistguy opened this issue 9 months ago • 8 comments

I shoot in Apple ProRaw on my iPhone, compressed with lossless JXL. These files are ~15MiB in size, and contain linear raw data readable by Photoshop / Lightroom.

When I upload these to my server (using auto-upload in the app) the resulting files (which are still .dng (i have disabled "most compatible)) are ~4MiB in size, and are recognised by Photoshop / Lightroom as non-raw files.

I would like to back up my photos in full quality, that's somewhat the entire point of using something self-hosted like nextcloud.

Is there a setting I've missed? Really I'd like the files stored on nextcloud to be identical (byte-by-byte if possible (can't see why not)) to the files taken by the phone camera.

Sciencentistguy avatar Mar 21 '25 10:03 Sciencentistguy

Same isses here with Nextcloud Hydrogen 6.5.0.5 Nextcloud Server 30.0.6

DNG files seems to be smaller (3,3 MB) in the synchronized Nextcloud folder since mid of March 2025, before they had the original size like in iOS (32 MB)

andi-no avatar Apr 06 '25 18:04 andi-no

Updated to Nextcloud Hydrogen for iOS 6.6.0.4 - Same issue Log: … .DNG, result: success(23992660 bytes)

andi-no avatar Apr 06 '25 18:04 andi-no

I‘ve updated Nextcloud server to version 31.0.2 -> It works again as before. Problem solved 😀

andi-no avatar Apr 07 '25 16:04 andi-no

having same issue, with nc hydrogen 6.6.0.4 and server 31.0.2

import-shiburin avatar Apr 11 '25 06:04 import-shiburin

This has been happening with me now, NC Hydrogen 6.6.04, server 31.0.3. I’ve noticed it seems to be an NC client issue. When I upload a ProRaw DNG through the files app, or using the “share” in Photos, it uploads fine, but when I select the same photo to upload from within the NC client, I get a JPEG version but still showing DNG. I’ve included a screenshot, both of these are the same image, the “already existing” was uploaded manually via files app to NC, the “new file” is from within NC.

Image

NCfeedback avatar Apr 12 '25 17:04 NCfeedback

Problem is back again 🙁

andi-no avatar Apr 16 '25 20:04 andi-no

⚠️ 严重质疑:难道团队里没有人真正用过 iPhone 的 ProRAW 吗?

各位开发者好,

这条 致命 BUG 已经挂了数月:

  • iOS 客户端在自动上传 DNG / ProRAW 时,仅传预览 JPEG,导致原片彻底丢失,虽然图片后缀还是DNG。
  • 自动备份这一核心功能对专业 / 半专业用户形同虚设。
  • 本 Issue (#3369) 自三月起就被多位用户确认,却始终停留在 Open,标签也不是 critical

一个以「私有云备份」为卖点的应用,却把 20 MB 的 RAW 原片吞成 3 MB 的失真垃圾,这事还能不算严重吗?

我要郑重发问:

  1. 团队里真的没有任何人用 iPhone 拍 RAW 吗?
  2. 难道没人意识到这会让用户以为「服务器偷偷压缩文件」并失去对 Nextcloud 的信任?
  3. 为何没有明确的修复里程碑或 PR?至少把标签改成 bug / critical 吧!

建议立刻采取以下行动:

  • 优先合并 / 编写 基于 PHAssetResourceManager 的上传实现,确保获取 .alternatePhoto 资源,而非 requestImageData 的缩略图。
  • 在下一个版本(6.7.x 或更快的补丁)中 明确写入 Changelog“Fixed original DNG/ProRAW upload; no more preview-only files.”
  • 更新文档,提示受影响版本的用户如何重新上传原片、避免数据丢失。

请正视这个问题,这不是 UI 小缺陷,而是用户数据完整性灾难。
希望立即标注为 severity: critical 并安排优先修复。

期待团队的实质性进展。

baijing0818 avatar Jun 09 '25 17:06 baijing0818

Same isses here with Nextcloud Hydrogen 6.5.0.5 Nextcloud Server 30.0.6

DNG files seems to be smaller (3,3 MB) in the synchronized Nextcloud folder since mid of March 2025, before they had the original size like in iOS (32 MB)

🐞 Updated reproduction notes / 最新复现说明 / Обновлённое описание


English

  1. Fresh install of the iOS app → enable automatic upload → shoot & upload a DNG → file shrinks to 3-4 MB (JPEG preview, same bug as before).
  2. Go to Settings › Auto-Upload › “Convert to JPEG”enable once, then disable again.
  3. From now on, new photos that are only DNG are uploaded in full size (≈25 MB) – ✅ works.
  4. BUT if the camera roll batch contains mixed formats (e.g. DNG + HEIC or DNG + PNG in the same upload batch), the DNG is again stored as 3-4 MB preview – ❌ still broken.

So the temporary toggle fixes single-format flows but not mixed uploads. Looks like the conversion flag isn’t fully reset inside the upload pipeline.


中文

  1. 重新安装 iOS 客户端 → 开启自动上传 → 拍一张 DNG 并上传 → 文件被压缩到 3-4 MB(仍为预览 JPEG)。
  2. 进入 设置 → 自动上传 → 「转换为 JPEG」先开启再关闭
  3. 此后,仅包含 DNG 的新照片 能以完整大小(≈25 MB)上传 —— ✅ 正常
  4. 如果同一批次里 同时存在 DNG 与 HEIC / PNG 等格式,上传后的 DNG 仍然只有 3-4 MB —— ❌ 问题依旧

结论:切换「转换为 JPEG」仅暂时修复纯 DNG 流程,对混合格式批量上传无效,疑似转换标志在上传管道中未被完全复位。


Русский

  1. Чистая установка клиента для iOS → автоматическая загрузка → сделать и загрузить DNG → файл уменьшается до 3-4 МБ (JPEG превью).
  2. В Настройки › Автозагрузка › «Преобразовывать в JPEG»: включить, затем выключить.
  3. После этого новые фото, где есть только DNG, загружаются полностью (≈25 МБ) – ✅ работает.
  4. НО если в одной партии находятся форматы смешанные (DNG + HEIC или DNG + PNG), DNG снова сохраняется как 3-4 МБ превью – ❌ ошибка остаётся.

Вывод: временное переключение опции исправляет одиночные DNG, но не помогает при смешанной загрузке; вероятно, флаг конвертации не полностью сбрасывается в конвейере загрузки.

baijing0818 avatar Jun 11 '25 03:06 baijing0818