|
There re way too many images posted in articles that are too large. If someone includes an image in an article
0) Scale it down to a max appropriate size (mobile aware etc). Do this only if the image is larger than the max appropriate size.
1) Allow the user to click on the image to see the full-size image.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
modified 15-Jul-19 8:51am.
|
|
|
|
|
The scale-down-and-click is exactly what's meant to happen with large images. Is there an article you can point to that's causing problems?
The current solution is simply to use JavaScript to do the scaling and provide a clickable full-sized version. I'm going to update this so that the images displayed are < 700px (and optimised) and a separate, full sized unoptimised image available through click through - no JavaScript.
cheers
Chris Maunder
|
|
|
|
|
I think scaling down to 320 (or 480) would be best (especially if they can click to see the unscaled image).
Since the images are already stored (in the db?) I think just loading them and scaling on the fly would be less work, and take less disk space.
I wasn't aware that this kind of thing was implemented. I just thought the people posting images just didn't care.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
There's actually two levels in play:
1. Anything > 700px gets scaled down via Javascript.
2. Anything wide than the viewport will be scaled down due to a max-width rule
I'm not keen on needlessly shrinking images. A large image should be able to fill the width of the article (up to a point) in order to fill the space and provide those whose eyesight is failing (ahem) a chance to see things a little better.
Is there any article you have seen where the images appear to be too large?
cheers
Chris Maunder
|
|
|
|
|
Chris Maunder wrote: I'm not keen on needlessly shrinking images.
I'm not talking about scaling images that fit.
I figure since you already have the image at its original size, you could just use the div tag to scale (instead of using javascript)
Most articles Ive seen appear to have the images scaled UP to fit the viewport, which makes the image look like crap. I can't give you a specific example.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
#realJSOP wrote: you could just use the div tag to scale (instead of using javascript)
The JS allows us to easily add a "click here to see the full version" without having to go back and reprocess the original article text (or post-process the article and image at the server level)
#realJSOP wrote: Most articles Ive seen appear to have the images scaled UP to fit the viewport
Ugh. That's not good. Next time you see this let me know, please.
cheers
Chris Maunder
|
|
|
|
|
I’ve seen the scaling up a couple times, but it went away when I went back later.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
A Heisenbug
cheers
Chris Maunder
|
|
|
|
|
Yup.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
It's uncertain if that's it.
|
|
|
|
|
Chris Maunder wrote: the images displayed are < 700px
Is that for mobile devices too?
|
|
|
|
|
|
You can do it yourself from your profile page: Close my account[^]
modified 15-Jul-19 8:01am.
|
|
|
|
|
You forgot to write [and then hit "save changes"] back then
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I (foolishly) assume that most people here are intelligent enough to see, and click, the Save button.
|
|
|
|
|
Message Removed
modified 15-Jul-19 11:18am.
|
|
|
|
|
Some thoughts:
- I think it makes more sense to allow notifications for (a) new posts (as implemented) and (b) direct replies to my messages, not all replies.
- I'm not getting any email notifications, just notifications on the home page. (Email from CP isn't going to my spam folder.)
Thanks,
/ravi
|
|
|
|
|
1. That option is already available under your profile:
2. I've checked your profile and all seems good on our end.
cheers
Chris Maunder
|
|
|
|
|
Did the post preview disappear?
|
|
|
|
|
Working fine for me, both in the forums and in QA.
Have you got an ad-blocker enabled?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Nope. I even tried different browsers and I'm not seeing it anywhere.
|
|
|
|
|
Any Javascript errors in the browser console?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes, many. I'll have to look into it. It's probably a work issue. Nothing I can do in that case.
|
|
|
|
|
Interesting. I am now seeing it intermittently.
|
|
|
|
|
The preview is working fine for me.
This feature uses both JavaScript and AJAX calls.
It is possible that you have a machine/network/security configuration that is blocking one or the other.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|