Use CSS for cropper rotation #1467
Comments
|
Use 3d transforms and offload that work to the GPU! |
|
@zaach says it might need his love, but @johngruen is going to take a look. |
|
@pdehaan @billmaggs asking QA/Prod if this is a blocker for soft launch? |
|
I'm not sure of the % distribution between desktop and mobile, but I'd say that ~10-15seconds is probably a blocker. |
|
Yes, I would say that's too slow for a reasonable user to stay with the activity so its a blocker. |
|
@billmaggs @edmoz @pdehaan @zaach: a few things:
TL;DR IDK what 'soft launch' means exactly in this context, but I don't think this needs to be blocking. Also, @zaach and I will be working together next week and can figure out a way to do this with CSS if we have time. |
|
@pdehaan well, f me |
|
Pictures around ~500x500px works pretty well on my Nexus 4 (1 sec rotation). |
|
@eoger does this happen for other types of food, or is it a ramen specific bug? |
|
@pdehaan That was highly relevant I assume? :P |
|
@pdehaan I'm not sure, I'll try to investigate with Hot pot next time, see if I can reproduce the bug. |
|
How does this fare given #2776 has landed? Perhaps we can remove the blocker label if performance is within 1-3 seconds. |
|
per irc - pdehaan is OK to remove blocker tag. |
|
I tested using latest.dev.lcip.org and a 8MP 2448x3264px image (1.5MB) on my Nexus 4 and the rotation speeds were pretty good (~2.5s). |
|
De-prioritizing for now and removing from avatars-41 milestone. |
|
@zaach - is the cropper using CSS or JS now? If CSS, can you close this down? |
|
Still JS |
|
Performant enough for now. Closing until we hear of more problems. |



The cropper rotates the image using canvas, which is really slow on mobile. I'm talking "use a Nexus 5 but still wait 15 seconds to rotate" slow. Let's rotate the image with CSS and do the canvas rotation at export like decent human beings.
The text was updated successfully, but these errors were encountered: