mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
work in progress
This commit is contained in:
15
lib/image_optimizer.rb
Normal file
15
lib/image_optimizer.rb
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# This class is used to download an optimize images.
|
||||||
|
|
||||||
|
class ImageOptimizer
|
||||||
|
|
||||||
|
def initialize(url)
|
||||||
|
@url = url
|
||||||
|
end
|
||||||
|
|
||||||
|
def force_refresh!
|
||||||
|
end
|
||||||
|
|
||||||
|
def optimized_path(width=nil, height=nil)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Reference in New Issue
Block a user