Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#559 Privoxy selectively kills _one_ harmless picture

closed
nobody
blocking (192)
5
2005-07-17
2005-07-03
Auda
No

Privoxy 3.0.3 runs on Debian Gnu/Linux testing/unstable.
The Problem occurs _only in Opera_, currently version
8.01, but I observed the same with previous versions.

The Problem: I have a page with some photograps. Small
thumbnails lead to the big images. There is _one_
thumbnail, which is just like the others, but never
shown due to Privoxy's interference.

My source is this until I upload the page (and
afterwards in any browser but Opera):

<a onclick="photoRights()" href=
"../images/Avignon_Fort_St_Andre.jpg" target="_blank">
<img src= "../images/th_Avignon_Fort_St_Andre.jpg"
width="120" height="90" alt="Foto"/>
</a>

The source I get back from Opera is this:

<a onclick="photoRights()" href=
"../images/Avignon_Fort_St_Andre.jpg" target="_blank">
<img
src="http://config.privoxy.org/send-banner?type=auto"
border="\0"
title="Killed-../images/th_Avignon_Fort_St_Andre.jpg-by-size"
width="120" height="90">
</a>

As you see, the thumbnail is replaced by something
rather unneeded.
I would give you the URL to the page, if this is of any
use.

TY

Discussion

  • Logged In: YES
    user_id=192651

    According to my "default.filter" file:

    s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=
    (['"]?)120\4)[^>]*?(height=(['"]?)(?:600?|90|240)\6)[^>]*>@<img
    src=$1http://config.privoxy.org/send-banner?type=auto$1
    title=$1Killed-$2-by-size$1 $3 $5>@sig

    All images that are 120x600, 120x90, or 120x240 will be
    blocked. There are other dimensions as well. All were
    picked because they are common banner sizes. You can
    turn the block by size off completely if it matches too many
    images.

    To get your image thru is to delete the width or height
    attribute (or both), disable the rule, or resize it by 1px.

    Visit http://p.p/, click on "Look up which actions apply to a
    URL and why" and paste in your image URL. You will (or
    should) see "+filter {banners-by-size}" listed.

    Note: this /should/ have been the case in every browser.
    Dont know why Opera was the only one showing the
    symptom.

    BTW, the hint left in the HTML for banners-by-size is "Killed-
    .....jpg-by-size".

     
  • Auda
    Auda
    2005-07-08

    Logged In: YES
    user_id=943360

    TY.

    Because of the difference in browsers, I had never thought
    of a configuration-setting, myself. Too much trust in the
    tool, obviously. ;-)

     
  • Hal Burgiss
    Hal Burgiss
    2005-07-17

    • status: open --> closed