99designs / phumbor Goto Github PK
View Code? Open in Web Editor NEWA minimal PHP helper for Thumbor
License: MIT License
A minimal PHP helper for Thumbor
License: MIT License
Hello please can you kindly help me out. I'm having issues with using this library. I have installed using composer and loaded the autoload.php from the vendor folder.
I'm using this inside Codeigniter framework. I want to create a Codeigniter Library (this library will therefore load the Thumbor class) which i can call within my application.
I implemented this like below:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class ImageResize {
private $server = 'http://thumbor.thumborize.me';
private $secret = '';
public function __construct(){
return \Thumbor\Url\BuilderFactory::construct($this->server, $this->secret);
}
}
But i'm getting Call to undefined method ImageResize::url()
Please what i'm i doing wrong and how can i resolve this?
Thank you.
Opencv has supported WebP conversion for ~6months. WebP is king on online image formats online in regards to filesize:quality ratio.
In general it'd be great to be able to do filetype or quality conversions on the fly.
As the title reads.
If not, could you leave a message in the README file so people can know what to expect?
Thanks ๐ป
The Url
class automatically encodes the original url when it chose ideally leave that step to the caller.
Example from the Thumbor docs:
https://github.com/globocom/thumbor/wiki/Getting-started
http://localhost:8888/unsafe/300x200/http://www.waterfalls.hamilton.ca/images/Waterfall_Collage_home_sm1.jpg
The url itself isn't encoded.
What was the rationale to rawurlencode
the original file path?
Hi,
I was wondering, is it possible to load an url into a ThumborUrl Class, to then perform other actions on it?
For example (pseudo code):
$filename = "//example.org/****thumbor-signature***/0x95:300x395/300x300/http://path-to-image.jpg";
$image = Thumbor\Url\Builder::construct(THUMBOR_SERVER, THUMBOR_SECRET, $filename);
echo $image; // will output the same as $filename;
$image->resize(500,500);
echo $image; // will output //example.org/****NEW-thumbor-signature***/0x95:300x395/500x500/http://path-to-image.jpg
I suppose this is not possible, but (for me) it would be a nice add-on...
Thanks!
Ben
Why would we receive the malformed url error for the url below:
Any thoughts?
Hi,
I receive the following error for some images ... can you help me understand how to fix it?
2014-07-14 15:57:04 thumbor:WARNING Malformed URL: /jyq3vYWwfonZ53WCmP_wOw0Sn5Y=/103x/http://1.bp.blogspot.com/-XEpVqBPZxKo/Ue4mLe8_MoI/AAAAAAAACpc/LCiGjWdHWrM/s1600/fantasy+environment+07.jpg
May be there is a problem with url containing the "minus" sign?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.