Skip to content
Snippets Groups Projects
Commit dd1edccf authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

creating url thumbnail generator


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent bb34ca4d
No related branches found
No related tags found
No related merge requests found
require 'screencap'
module Thumbnail
module Strategies
class UrlThumbnailGenerator < ::Thumbnail::GeneratableStrategy
def generate(screen)
screen.fetch(
width: 1024,
height: 768
)
end
def can_generate?(screen)
::Screencap::Fetcher == screen.class
end
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment