Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • A assignment-3-image-rotation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • programming-languages
  • cse-programming-languages-fall-2023
  • assignment-3-image-rotation
  • Merge requests
  • !19

Closed
Created Nov 09, 2023 by Kirill Afanasyev@zerumi
  • Report abuse
Report abuse

Afanasyev Kirill P3206

  • Overview 37
  • Commits 27
  • Pipelines 27
  • Changes 12

Declarative (!!!) image transformation library with console usage as rotation image by some angle.

Implemented commands:

  • Image rotation by 0, 90, 180, 270 clockwise or counterclockwise
  • Image blurring by 3x3 square

Each command may be mixed with others, applied as many times as needed, etc. All errors triggers interpreter to abort executing commands with information about last executed command. Also implemented some primitive console output error handling.

Some examples:

Example 1:

zerumi@MacBook-Air-Kirill solution % ./image-transformer input.bmp d_output.bmp 180
Image successfully rotated by 180 degrees clockwise
zerumi@MacBook-Air-Kirill solution % ./image-transformer input.bmp d_output.bmp -180
Image successfully rotated by 180 degrees counterclockwise

(program passes all tests)

Example 2:

zerumi@MacBook-Air-Kirill solution % ./image-transformer input.bmp d_output.bmp 12
Something went wrong during command execution!
Command: Rotating image
-------------------------------------
Status code of broken command: 44
Function rejected provided arguments!
Usage: IMAGE_ROTATE <angle>. Angle should be dividable by 90!

Example 3 (with chmod u-w d_output.bmp):

zerumi@MacBook-Air-Kirill solution % ./image-transformer input.bmp d_output.bmp 90
Something went wrong during command execution!
Command: Open file
-------------------------------------
Status code of broken command: 45
Permission denied
Edited Nov 11, 2023 by Kirill Afanasyev
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: master