[Roadmap] Image dimensions/previews/sizes

Various discussions related to Adblock Plus development
Post Reply
neko2sonic
Posts: 10
Joined: Wed Jul 21, 2010 2:37 pm

[Roadmap] Image dimensions/previews/sizes

Post by neko2sonic »

Here are a few questions/things I've noticed in the "blockable items" portion of ABP.

1.) Sizes (dimensions) for images don't always display. What is the criteria for them displaying? Shouldn't they always display?

2.) Tooltip image previews don't work for images that are "object subrequest"s (for example, http://www.omgpop.com/).

3.) Has having a column for the file sizes (space consumed) of blockable items ever been considered?

Thanks. :D
Wladimir Palant

Re: Image dimensions/previews/sizes

Post by Wladimir Palant »

1) You are probably looking at background images. Adblock Plus doesn't list the intrinsic size of images but rather the size of the element the image is associated with. As currently implemented in Gecko, background images are not associated with any particular element of the document but rather the document as a whole - so deducing size is not possible.

2) Tooltip image previews only work for images ;) An object subrequest can be anything and determining that it is an image isn't quite straightforward.

3) No :)

Thank you for these points, I think that fixing them in one way or other might be worth considering. Size of background images can be looked up in the cache (I think that Page Info dialog does it like that), same goes for the mime type of object subrequests to determine whether it is an image (if it is in the cache at all of course). And - yes, file sizes are available in the cache as well. The question is only whether cache access is fast enough to do this. I'll move this to the Future Development forum.
Wladimir Palant

Re: [Roadmap] Image dimensions/previews/sizes

Post by Wladimir Palant »

Looking into this is now on the roadmap (unscheduled).
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: [Roadmap] Image dimensions/previews/sizes

Post by Gingerbread Man »

2. As I posted in a separate thread, I don't get previews for any inline images whatsoever. Reloading the page doesn't make a difference.
forum/viewtopic.php?f=11&t=12380

1. I get missing dimensions with plain inline images as well. Some even have their dimensions defined in the attributes of the img tag.
http://www.w3.org/2009/Talks/0615-SanJose-tutorial-IH/

Code: Select all

<img src="conf-logo.jpg" width="67" height="55" alt="conference logo"/>
The missing dimensions issue seems to happen randomly. Reloading the page seems to fix it, which might mean it's just part of the larger problem with the Blockable Items pane.
forum/viewtopic.php?f=11&t=11709

92 KB, 1182 × 1568
Image
Cortex

Re: [Roadmap] Image dimensions/previews/sizes

Post by Cortex »

It happens to me once i upgrade past Firefox 17, if I go to 18 or 19, it will not longer show image previews, but if i go back to Firefox 17, it fixes it
axxo1
Posts: 1
Joined: Fri Aug 23, 2013 6:54 pm

Re: [Roadmap] Image dimensions/previews/sizes

Post by axxo1 »

This is affecting me as well, I don't get previews for any inline images.
Post Reply