Code Monkey home page Code Monkey logo

Comments (8)

jimmynicol avatar jimmynicol commented on August 16, 2024

@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.

mariusa avatar mariusa commented on August 16, 2024

@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.

jimmynicol avatar jimmynicol commented on August 16, 2024

@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.

mariusa avatar mariusa commented on August 16, 2024

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.

madshobye avatar madshobye commented on August 16, 2024

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.

mariusa avatar mariusa commented on August 16, 2024

Here it is: http://we.tl/4EUq6C46cI

from image-resizer.

jgillman avatar jgillman commented on August 16, 2024

@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.

mariusa avatar mariusa commented on August 16, 2024

Sure!
https://gist.github.com/mariusa/a0c6851eb1c1f4e6a865

from image-resizer.

Related Issues (20)

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.