diff --git a/app/graphql/graphql_query_collection.rb b/app/graphql/graphql_query_collection.rb index 5cf3991e..d47c4133 100644 --- a/app/graphql/graphql_query_collection.rb +++ b/app/graphql/graphql_query_collection.rb @@ -133,6 +133,7 @@ class GraphqlQueryCollection name description largeImageUrl: imageUrl(type: "large") + extralargeImageUrl: imageUrl(type: "extralarge") dateTaken importedAt previousPhoto { diff --git a/app/graphql/types/photo_type.rb b/app/graphql/types/photo_type.rb index 23990591..9672e47f 100644 --- a/app/graphql/types/photo_type.rb +++ b/app/graphql/types/photo_type.rb @@ -16,9 +16,12 @@ class PhotoType < Types::BaseObject field :machine_tags, [TagType], 'Machine (Rekognition) tags', null: true field :name, String, 'Title of the photo', null: false field :next_photo, PhotoType, 'Next photo', null: true + field :width, Integer, 'Width of the photo in pixels', null: true + field :height, Integer, 'Height of the photo in pixels', null: true field :previous_photo, PhotoType, 'Previous photo', null: true - field :user_tags, [TagType], 'User (non-Rekognition) tags', null: true + field :ratio, Float, 'Ratio of the photo', null: true field :rekognition_label_model_version, String, 'Rekognition label model version', null: true + field :user_tags, [TagType], 'User (non-Rekognition) tags', null: true field :image_url, String, null: false do description 'URL of the image' @@ -67,5 +70,13 @@ def image_url(type:) def rekognition_label_model_version @object.rekognition_response['label_model_version'].presence || '' end + + def width + @object.pixel_width + end + + def height + @object.pixel_height + end end end diff --git a/app/javascript/albums/index.vue b/app/javascript/albums/index.vue index 67ab727f..b83e4555 100644 --- a/app/javascript/albums/index.vue +++ b/app/javascript/albums/index.vue @@ -1,6 +1,6 @@ diff --git a/app/javascript/footer.vue b/app/javascript/footer.vue index 1ab7fbbb..7c89bf48 100644 --- a/app/javascript/footer.vue +++ b/app/javascript/footer.vue @@ -1,10 +1,25 @@