-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Editor: Correct image rotation by always passing image through Photon #11239
Conversation
cc @iamtakashi |
Seems to test as suggested by your description for me. So I see it initially "incorrectly rotated", but then once the upload completes, then it rotates properly. |
@aduth Do you want more testing? Is it ready to merge? |
@lancewillett I think this could be shippable, though puts us in a weird partly-fixed state with all its caveats. Better overall than what exists currently? |
@aduth Yes, in my opinion worth the step in the right direction. |
I'll plan to merge this Monday morning. |
9b44f6e
to
441c4e0
Compare
Partial fix for #313, many caveats apply (see section below)
This pull request seeks to correctly display images with rotation EXIF metadata in the post editor for Jetpack sites. The changes here revise the
restrict-size
TinyMCE sub-plugin to pass all images through Photon. The reason this helps fix the rotation is described in more detail in #313:These changes do not fix rotation issues with featured image. Featured image is more complicated because we respect custom theme size and crop. Because the thumbnail resizing is the cause for the rotation issues, we either must choose (a) to ignore custom thumbnail and pass original image through Photon or (b) to respect custom thumbnail at cost of rotation issues.
Testing instructions:
Using example rotated images, try inserting images into post content. Observe that rotation is restored after image finishes uploading.
Caveats: