Git Product home page Git Product logo

imgsizer's People

Contributors

arawkins avatar ctmaloney avatar meatpaste avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

imgsizer's Issues

Not working with full URLs

Hi there,

I've just updated a site from 2.5 to 3.5.4 and I have an issue with your version of imgsizer.

So when I use a File field, it outputs the full url of the image.

When I put it in an imgsizer tag

{exp:imgsizer:size src="{teaser_image}" width="340" height="340"}...{/exp:imgsizer:size}

It throws an error:

ImgSizer Error: Can't read size source file. https://mysite.com/images/uploads/Good_Morning_City_Cover_large.jpg

I checked the PHP code that throws that error.

if($this->settings['size_src'] != '') {
            if (!file_exists(reduce_double_slashes($this->settings['root_path'] . '/' . $this->settings['size_src']))) {
...

So I checked the value of reduce_double_slashes($this->settings['root_path'] . '/' . $this->settings['size_src']) and it's a mix between the url and the server path

/home/patspape/mysite.com/html/https://mysite.com/images/uploads/Good_Morning_City_Cover_large.jpg

I guess that means the add-on is not working at all with full URLs, right ? And I didn't find any parameter in EE to make the tag return the relative path instead of the full URL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.