New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical photos are rotated #9
Comments
Hello @atasinti I cannot reproduce it. Could you tell me from which client you are uploading it? |
I used a client called Nostter ( https://nostter.app/ ) to upload images. |
FYI I think exif orientation information is ignored when converting jpg to webp, but I'm not sure. (ffmpeg issue?) |
To test, edit the image a bit so that the hash is not the same. Otherwise the server will always return the same image. |
My reproduction steps (Windows 10 + Chrome)
|
I think it is already solved 🥳🥳🥳 It was the version of ffmpeg in debian in production. I have always been testing it on my development machine which had a higher version of ffmpeg 😅 Can you validate it? Thank you very much for notifying me of the error 🙏 |
Orientation is solved! 🎉🎉🎉 However, aspect ratio seems to be strange. |
I just uploaded it to this site, and it also detects the width and height in reverse. https://www.metadata2go.com/result#j=1aa5351f-04bb-4654-8896-4ebab2bfaadd Weird... I check it! |
Original image is broken...? I'm sorry. I test another image and it works well. |
Thank you so much! |
I've confirmed. URL after upload |
Can you send me the original image? I just uploaded the example you indicated and it displays fine. |
I will attach the original image compressed with zip. |
Hi, I have been testing. The server detects the width and height upside down, so I checked it with an online service and it also detected the measurements upside down as well. It should be: width: 3000 https://www.metadata2go.com/result#j=21666df0-b809-48c0-8122-043467fb5435 As you can see, this service also detects the measurement in reverse. I am thinking about not using the metadata for the measurements anymore and calculate them myself in real time, which may eventually make the process a bit slower. I'm going to investigate for my part, can you think what could be happening? |
It works! I have deleted 2 entries in the database with this hash so that the server can reprocess it. If you already uploaded it with your username you can upload it again and the same URL will be generated. On the other hand, clear your browser cache to see the change, I cleared the cloudflare cache for this particular file. As soon as you can, confirm me that everything is OK and I will be able to close (finally) the issue 😀 |
I have confirmed that the issue is resolved. |
Describe the bug
When I upload a vertically long photo, it gets rotated.
original image
URL after upload
https://nostrcheck.me/media/public/c4722b34509de39194f3662a62735ee0ff699a41fdc2f22f4f965498b71ff5ea.webp
The text was updated successfully, but these errors were encountered: