height: () ->
null
- size: () ->
+ real_size: () ->
[@width(), @height()]
has_size: () ->
@width() and @height()
+ tag_options: () ->
+ {}
+
thumbnail_size: () ->
if @has_size()
Pettanr.View.Image.to_thumbnail_size(@width(), @height())
class Pettanr.PictureFile extends Pettanr.ImageFile
constructor: (@item, subdir = null) ->
- @filename = @item.r_url()
- @filename += ('?subdir=' + subdir) if !_.isEmpty(subdir)
+ @filename = @item.r_url(subdir)
width: () ->
Math.abs(@item.get('width'))
height: () ->
Math.abs(@item.get('height'))
+ tag_options: () ->
+ {}
+