imgsizer's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.