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

Add-on Image re-size add-on

Discussion in 'Resource and Add-on Requests' started by Blakefire, Aug 11, 2012.

  1. Blakefire

    Blakefire Active Member

    Is it possible to make a add-on that will re-size external image to fit within the post?
     
  2. ShadyX

    ShadyX Well-Known Member

    I might be mistaken but doesn't xenforo already make images smaller to fit within the constraints of a thread?
     
  3. Blakefire

    Blakefire Active Member

    People said that it only does that to uploaded files not external images.
     
  4. ShadyX

    ShadyX Well-Known Member

  5. MagnusB

    MagnusB Well-Known Member

    Its not being resized, its being scaled down via css or javascript.

    EDIT;
    Doh, the image was too small :(
     
  6. ShadyX

    ShadyX Well-Known Member

    I don't know why the images would need to be physically resized? That wouldn't be possible for an external image anyways unless it was actually uploaded to the forum.
     
  7. MagnusB

    MagnusB Well-Known Member

    I agree, if you want that, it is better to disallow image tags and just allow attachments.
     
    ShadyX likes this.
  8. snoopy5

    snoopy5 Well-Known Member

    I need this too for external links of images. This is the only way to differentiate between usergroups and not wasting server space...
     
  9. Blakefire

    Blakefire Active Member

    Not physically re-sized, the add-on would just scale it to fit within the posting area. I know it's possible because it's a add-on for Mybb.
     
  10. snoopy5

    snoopy5 Well-Known Member

    Does the myBB mod makes the resizing also for links to external images?
     
  11. Blakefire

    Blakefire Active Member

    Yup, but Jake said that XF does this naturally.
     
  12. Naatan

    Naatan Well-Known Member

    To do this your addon would need to download these images and resize them, using both bandwidth and processing power. Depending on the size of linked images and the amount of images your users link to this can be seriously taxing to your server. This is also the reason why image uploads are often limited in size and resolution.

    It is possible to make an addon for this, but the reason it's generally not done is simply due to the above mentioned issues (performance & bandwidth). The cons quite simply outweigh the pro's.
     

Share This Page