Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 694
    • Issues 694
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Issues
  • #1468

Closed
Open
Opened Nov 20, 2018 by Torsten Grote@groteOwner6 of 6 tasks completed6/6 tasks

Restrict size of image attachments

We can not process images of arbitrary size, because the device may lack the memory to load the entire image into it or because the maximum texture size is smaller than the image.

  • don't read entire images in memory
  • scale full screen images down to screen size to avoid exceeding max texture size
  • add tests for MarkEnforcingInputStream
  • tests for our own code that handles the various image types and edge cases
  • limit our supported mime types to image/gif, image/jpeg and image/png
  • limit the size of images that can be sent

Subtask of #1237.

Edited Feb 19, 2019 by Torsten Grote
Assignee
Assign to
Android 1.3
Milestone
Android 1.3
Assign milestone
Time tracking
None
Due date
None
Reference: briar/briar#1468