Comments (8)
@mariusa you are right the requirement for s3 credentials is a bit odd if you dont actually need them. v0.9.2
fixes this.
In regards to your request to operate like Sencha.io this would need to be done with a custom source file. Take a look at the facebook or twitter examples and you should be able to build a source file for your particular endpoint (or any source) pretty easily.
The Image object will pass around the path string from the request object which should match the format of what you mention about (http://whatever.com/image.jpg
).
So basically what you end up with is: http://my.cdn.com/ewhatever-h500/http://whatever.com/image.jpg
You can also set your generic source to be the default source (DEFAULT_SOURCE
) so you can drop the ewhatever
modifier from your url.
I am not convinced this should be in the default installation as it does open you up to having anyone use your image service for their own needs. Locking things down to sources you can can control is the default state I would prefer to offer.
from image-resizer.
@jimmynicol Thanks James. Tried it but still no luck, I get this when loading
http://localhost:3003/h500/http://www.lonestardigital.com/Camera_Raw_Screenshots/DSC_0039_Jpeg_to_Jpeg_full_image.jpg
[resizer] new stream created!
[resizer] onthefly - 4447ms
[resizer] identify: no identify
[resizer] resize error Error: spawn ENOENT
[resizer] resize - 7ms
[resizer] Error: spawn ENOENT
I've added request to package.json deps; set DEFAULT_SOURCE=onthefly
and put this file in plugins/sources
http://pastebin.com/ZjELHmfF
from image-resizer.
@mariusa, I tried your custom source and didnt have any issues sorry.
I did a quick googling of your error and this may help (http://stackoverflow.com/questions/18846918/node-js-error-spawn-enoent). At a guess it might be that you dont have graphicsmagick installed.
from image-resizer.
Thanks for checking, James. I do have the package installed. Will keep researching this.
Since it works for you, feel free to add onthefly.js to image-resizer sources, so that others have an out of the box working version.
from image-resizer.
Hey Marlusa - could you share the onthefly.js - the pastebin does not work anymore and I would love to make it work.
from image-resizer.
Here it is: http://we.tl/4EUq6C46cI
from image-resizer.
@mariusa Hey, sorry to be a pain, but I would really love to see it as well. Could you throw it into a private gist instead of a service that expires links?
Nevermind, looks like @jimmynicol saved it here already: https://gist.github.com/jimmynicol/eeb3c7fc3872ea24dc3d
from image-resizer.
Sure!
https://gist.github.com/mariusa/a0c6851eb1c1f4e6a865
from image-resizer.
Related Issues (20)
- Black background when converting png to jpg HOT 1
- Using it for s3 compatible third party buckets (but not provided by amazon) HOT 1
- app crashes on jpg image HOT 11
- Please add additional logging when using EXTERNAL_SOURCE_* HOT 1
- Unable to disable Chalk coloured output HOT 2
- Update sharp dependency to v0.12.0 HOT 3
- How to run it in production mode on AWS HOT 3
- Installation Error HOT 5
- 'The specified key does not exist.' error when used behind Nginx. HOT 2
- 'The specified key does not exist.' when accessing image 3 folders deep. HOT 2
- crashes when empty input HOT 1
- Is this project dead? HOT 2
- Random error HOT 2
- Is this repo dead? HOT 1
- Image Quality HOT 1
- Use of lovell/sharp/master/preinstall.sh is deprecated, will be removed at end of 2016 HOT 1
- High severity vulnerability affecting this repo
- Can't make a route other than root '/' HOT 2
- looks lossy HOT 5
- Does not work with proxy
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.
from image-resizer.