1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on Paid addon needed to hide broken and missing images

Discussion in 'Custom Service/Development Requests' started by Amin Sabet, Oct 14, 2016.

  1. Amin Sabet

    Amin Sabet Well-Known Member

    I'm looking to hire someone to do an addon which deals with broken images, including those which are autoreplaced with placeholders.

    There's the kind in post 4 which are autoreplaced by Flickr:

    https://www.mu-43.com/threads/olympus-45mm-f-1-8.16610/#post-152184

    Post 12, images autoreplaced by Google:

    https://www.mu-43.com/threads/olympus-45mm-f-1-8.16610/#post-152369

    A bunch autoreplaced by PBase in the first post of this thread:

    https://www.mu-43.com/threads/a-day-in-the-life-of-a-pad.1777/

    Some plain old, broken images (not autoreplaced) in this post:

    https://www.mu-43.com/threads/panasonic-14mm-f-2-5.8118/page-2#post-73005

    For any of those types of images and other similar situations (other hosts besides Flickr, Google, PBase, including but not limited to Smugmug, Zenfolio, 500px, etc):

    -I'd like the image to be blank (not show at all and no placeholder image either) if such an image is found in the first post of a thread

    -I'd like the entire post to be hidden with a toggle to show hidden post if such an image is found in any post other than the first post in the thread.

    -Lastly, would like to have usergroup permissions so that I could have a usergroup promotion by which members could opt out of the addon if they so chose.
     
    Last edited: Oct 14, 2016
  2. Amin Sabet

    Amin Sabet Well-Known Member

    I'm starting to think this addon is not possible as the autoreplaced / redirected image seems to be the normal way that some of the image hosts work. When I use the image proxy, which doesn't proxy 301 directed images, it gets rid of the Flickr placeholders for broken images but also gets rid of valid images depending on the host :(.
     
  3. ForumCube

    ForumCube Active Member

    @Amin Sabet We are interested for this job. Let's start chat please.
     
  4. Amin Sabet

    Amin Sabet Well-Known Member

    Here's an example of a image URL which gets automatically redirected but should not be hidden:

    Code:
    https://photos.smugmug.com/CVNP/Cuyahoga-Valley-National-Park/i-jHb28XF/0/X2/P6170094-2-X2.jpg
    gets redirected to:

    Code:
    https://photos.smugmug.com/CVNP/Cuyahoga-Valley-National-Park/i-jHb28XF/1/X2/P6170094-2-X2.jpg
    So for this addon to work properly, I would need it to hide only posts containing images which either 401 error or redirect to an image URL with the containing a phrase from a specified list of phrases, eg "photo-unavailable".
     
  5. Amin Sabet

    Amin Sabet Well-Known Member

    So to summarize, the addon options would look something like this:

    Code:
    Hide Broken Image Posts
    
    This addon will do the following:
    
    -In the first post of the thread, images meeting the specified criteria will be hidden.  No placeholder image will be displayed.
    
    -In posts other than the first post of the thread, the entire post will be hidden with a toggle stating "Post hidden due to broken image(s), click here to show" to show the post if images meeting the specified criteria are found within the post.
    
    Criteria for hiding:
    
    -All image URLs which return 404 (not found) error
    
    -Images URLs which redirect to an image URL containing the following strings (enter one per line):
    
    photo_unavailable
    dld.gif
    
    The lines in orange would be configurable in the options, those are just examples. That way other image hosts which redirect as part of their normal process would not be affected. Only the ones specified.

    So for using the example specified above, these two images would meet the criteria:

    Code:
    [img]https://farm7.static.flickr.com/6180/6172064687_834c859b5c_b.jpg[/img]
    which redirects to

    Code:
    [img]https://s.yimg.com/pw/images/en-us/photo_unavailable_l.png[/img]
    and

    Code:
    [img]http://www.pbase.com/bmosley/image/122979819/original.jpg[/img]
    which redirects to

    Code:
    [img]http://ap1.pbase.com/site/dld.gif[/img]
    but this one would not meet the criteria:

    Code:
    [img]https://photos.smugmug.com/CVNP/Cuyahoga-Valley-National-Park/i-jHb28XF/0/X2/P6170094-2-X2.jpg[/img]
    which redirects to

    Code:
    [img]https://photos.smugmug.com/CVNP/Cuyahoga-Valley-National-Park/i-jHb28XF/1/X2/P6170094-2-X2.jpg[/img]
    As I think more about this, I don't need the usergroup permissions. This mod would be enabled for everyone. As long as there is a toggle to show the hidden posts, I can't think of anyone who would object.
     
    Last edited: Oct 15, 2016
  6. Amin Sabet

    Amin Sabet Well-Known Member

    I'm all set. Don't need this anymore. Thanks!
     

Share This Page