radiospiel / imgio

An image asset resizer along the lines of sencha.io
25 stars 1 forks source link

Ideas for Middleware #5

Open Overbryd opened 12 years ago

Overbryd commented 12 years ago

Hy @radiospiel ,

I think your plans to provide imgio as a middleware are great.

To do so I wrote down a couple of thoughts.

Since Sinatra is able to run as a middleware, we just need it to adapt a little bit.

Furthermorw I think there should be two variants of imgio as gems. One should be async and for latest environments running Ruby19 and another should include Ruby systems >=1.8.7. The latter could also provide support for async mode, maybe using a queue and processes or something. But for a first shot, it'd be enough to have it running in sync.

Since I have some spare time, I'd like to step up and work on the Ruby19 as a middleware,

What do you think?

Cheers, Lukas

radiospiel commented 12 years ago

I wouldn't put too much work into 1.8.7 & async. The folks that are still stuck at 1.8.7 have probably other issues :) But go ahead, I like that.

I will add another issue with rewriting HTML so that img tags get automatically proper imgio urls. BTW: I do own the img.io URL, so we could even run a service there, if we would so choose :)

Overbryd commented 12 years ago

I have created a ruby18_sync branch within my fork.

There you will find an implementation suited for Ruby18 using Net/HTTP as client. It not only significantly reduces dependencies. The main reason to separate the codebase into Ruby18 and Ruby19 will be maintenance. The differences between 1.8 <> 1.9 are so huge that it eventually become a mess when maintaining everything in one codebase.

Next step: Meet and greet! I am thrilled that you own the img.io domain, and since I have absolutely nothing to do the next two weeks, I'd be happy to start a simple yet lean service with you. I also thought we might present it at the RUG-B in march. Just tell me when you have some time to meet, we can negotiate any further stuff on Twitter.

radiospiel commented 12 years ago

Thx for your comments. Next week I am a bit tight on free time; tuesday evening would work, though. Where are you located? Probably best would be to follow me on Twitter, so that I can directtweet you; this makes the meet&greet part easier to organize, I guess :)