Spoiler on images doesn't effectively protect NSFW images


(Robert Lee Louviere) #1

Someone used a spoiler tag to blur a fun, but NSFW image.

The problem is that the image loads and displays unblurred until the image fully loads.

This kind of defeats the purpose.

Can we either have a NSFW tag that hides before fully working? Or have the spoiler tag hide content completely until after it can apply the blur filter?


(Robert Lee Louviere) #2

Apparently, spoilers also don’t take effect when you click
the icon to see the post being replied to, and I’m going to guess if it
was quoted, expanding to see the full quote would have the same issue.

Yup, expanding a quote has the same issue.


(Kane York) #3

Fixing this will require a redesign/rethinking of the way that spoilering images works.


(Robert Lee Louviere) #4

Honestly large enough images with high dpi, will still be recognizable.

Just make them black.

Or aesthetically pleasing color tone that fits with the background tone.


(Scott Trager) #5

Couldn’t you simply div it invisible (actual display=“invisible” rather than “none” as invisible still loads the image) until the image is fully loaded and than change the visibility back on?


(Kane York) #6

Applying a full-black overlay in CSS seems more effective to prevent reflows.


(Jeff Atwood) #7

First, I suggest suspending the user if this is unwanted.

You should be able to override the css to make the images black if this is a regular thing on your site.


(Robert Lee Louviere) #8

I appreciate that thought, but this affects all images.

Imagine if the spoiler image was just a screenshot of an actual spoiler in a game or story.

At 85% scanline loaded, you can pretty much see the picture, and it doesn’t blur until fully loaded.

Thus the whole purpose is rendered ineffective.

Also, replies (the expand to show back and forward) don’t use the spoiler effect at all.

This is a bug that needs to be fixed, regardless of the content that this specific post contains.


(Jacob Chapel) #9

I think spoiler images shouldn’t even be loaded and instead they should have a placeholder which can be clicked to load.

This would be important for actual nsfw images as even if we make them harder to see or blocked entirely the image is still downloaded and if you’re at work it could be tracked on the network.


(Dylan) #10

I think spoilers would be more effective if they just hid the image right away and you have to click on the spoiler to view it.

Here is an example:

Text you type:

[sp]Testing this for Discourse.org[/sp]

[spoiler=Click Me For Secret]
Test.
[/spoiler]

Result:

then:


(Robert Lee Louviere) #11

I would agree with this one.

Ideally, spoiler images should blur immediately, but a separate NSFW tag for images should act differently and not even load until clicked, possibly with a confirm box.