$30 off During Our Annual Pro Sale. View Details »

Rubykaigi 2013 Lightning Talk - kibitan

Rubykaigi 2013 Lightning Talk - kibitan

http://rubykaigi.org/2013/lightning_talks#kibitan

Realtime resizing and caching images engine with GET Parameters made by Sinatra.

Movie: http://www.youtube.com/watch?v=uN8F2wpnBnE

It's useful to use as The Image Server with big web service using many images.
And also useful to fit the image size to smartphone or mobile views without time and effort.

Chikahiro Tokoro

May 31, 2013
Tweet

More Decks by Chikahiro Tokoro

Other Decks in Technology

Transcript

  1. Image Resizing and
    Cache Engine
    by Sinatra
    @kibitan
    2013.5.31 rubykaigi Lightning Talk

    View Slide

  2. we call it

    View Slide

  3. “Thunder Image” !

    View Slide

  4. “Thunder Image” is..

    View Slide

  5. “Thunder Image” is..
    “Realtime” Resizing Image Engine
    by GET Parameters
    (made by Sinatra)

    View Slide

  6. “Thunder Image” is..

    View Slide

  7. “Thunder Image” is..

    (thunderURL)/(width)x(height)/(URL)
    Resizing
    100 x 150
    original size

    View Slide

  8. Use Case

    View Slide

  9. - Using as Resizing API
    for your service’s images
    especially for many images
    Use Case

    View Slide

  10. Use Case
    - Fit the image to
    thumnails, smartphone, mobile views
    - Using as Resizing API
    for your service’s images
    especially for many images

    View Slide

  11. And,, automatically Cached !

    View Slide

  12. User Web Server Application
    Make Cache
    ThuderImage make cache
    in first access.

    View Slide

  13. Web Server Application
    User
    Cache Hit !
    ThuderImage’s cache is
    by Web Server, not by application.

    View Slide

  14. Web Server Application
    User
    Cache Hit !
    10x faster!!
    compare with passing through application!

    View Slide

  15. Web Server Application
    User
    Cache Hit !
    10x faster!!
    compare with passing through application!
    demonstration

    View Slide

  16. “Thunder Image” Demo URL
    You can try it!!
    (i will write link in IRC chat.)
    http://thunder-image.kibitan.com/
    id
    pass
    : rubykaigi
    : 2013

    View Slide

  17. @kibitan http://thunder-image.kibitan.com/
    id/pass rubykaigi/2013
    A
    ThunderImage!
    - PR Time -
    (My Profile)

    View Slide

  18. @kibitan http://thunder-image.kibitan.com/
    id/pass rubykaigi/2013
    A
    ThunderImage!
    - PR Time -
    @kibitan
    http://kibitan.com/

    View Slide

  19. @kibitan http://thunder-image.kibitan.com/
    id/pass rubykaigi/2013
    A
    ThunderImage!
    - PR Time -
    @kibitan
    http://kibitan.com/
    I’m JOBLESS Now !!
    ແ৬Ͱ͢ɻ

    View Slide

  20. @kibitan http://thunder-image.kibitan.com/
    id/pass rubykaigi/2013
    A
    ThunderImage!
    - PR Time -
    @kibitan
    http://kibitan.com/
    Feel free to contact me!
    @kibitan
    ϝοηʔδ଴ͬͯ·͢ɻ

    View Slide

  21. @kibitan http://thunder-image.kibitan.com/
    id/pass rubykaigi/2013
    A
    ThunderImage!
    Thank you
    for your cooperation!
    ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ

    View Slide