I’d like to have the same “scale-btn” functionality on my Discourse install as is here on Meta.
What exactly is that, a plugin? If so, does it have a name? Or it’s an unreleased version of Discourse?
I guess it’d doesn’t resample the images, just makes the browser display them at lower ratio, which is exactly what I’m looking for in all my Retina macOS screenshots. Inserting a 2x screenshot has always been a pain in Discourse, and this is exactly the perfect solution for it.
Cool, it’s working now. One issue though is that now Retina images are used and encouraged, the built-in resizing should also take care of that.
What I mean by that is that I have a screenshot, which is 1206x514 in 2x size or 603x257 in 1x size. If I upload it to my forum (or here) it automatically gets resized to 689x294, which is a very odd size. Odd, because it’s bigger than 1x size would be and also because it’s not an integer resize, so it’s blurry.
Once it’s in this size, I cannot use the 50% button as it’d be super tiny / unreadable, so I need to use the blurry/oversized 689 size.
OK, I’ve changed that setting to 1380. There are two bugs related to that:
(minor) Already uploaded images cannot be reuploaded again, it remembers them (from hash I guess) and only offers the 689 size.
The new scale buttons’s CSS go outside the view when this setting is used to allow wider images. Also the aspect ratio is wrong unless on 50% settings.
OK, I just checked and a single line of text before indeed solves it.
Also I cannot replicate the aspect ratio bug today, even though I’m trying with the very same image and I haven’t done anything with the site.
He estado experimentando cierto comportamiento que, sin duda, es el previsto actualmente, pero que se siente un poco… extraño, en relación con el comentario anterior.
El escenario es el siguiente:
Toma una captura de pantalla de aproximadamente 500 px de ancho en una pantalla Retina.
La imagen resultante tiene 1000 px de ancho.
Súbelo a Discourse.
La imagen se redimensiona a 690 px y ahora parece más grande que el original.
Dado lo anterior, parece apropiado que, además de los botones del 100 %, 75 % y 50 % disponibles actualmente, se presente una opción de “2x” o “3x”. Esto cambiaría la prioridad del redimensionamiento para intentar siempre mostrar la imagen lo más cerca posible de su tamaño real primero.
Con el escenario anterior, si se ofrece la opción de seleccionar “@2x”, la imagen se mostraría con 500 px y parecería tener su tamaño real, en lugar de 690 px.
Esto también es cierto para las imágenes del Lightbox en sí. Preferiría mucho que se abrieran en un estado Retina @2x o @3x.