GithubHelp home page GithubHelp logo

image-editor's Introduction

handle saving file on closing
handle Save file without opening image

There has to be change in the semantics of creating a temp file. We will now create temp files only when any effect is applied . If only the image is being viwed then no temp file should be created.


ISSUES
-- get size of scolledwindow to resize
-- store the filename of current file 
There is an issue with resizing. Image Object used by resizing operation is different from image object used for applying effects. Probably will have to save the resized image and then read again and apply effects.

UNDO added
Semantics of undo
- Every effect is manipulated to be a function of type Image -> IO (), so that a list of all previous actions can be stored. When undo is done file is read from the original location and then all the actions except the last action are applied and rendered. The tmp file is also changed.
Right now a recursive version is added for this known as applyeffects. An implementation using map can be added.

PROBLEMS WITH CONTRAST AND BRIGHTNESS
The ok button presumes that tempfile1 is there. But it may not be. So handle that case.
The window should probably be changed to widget so that it can be destroyed via ok and cancel buttons.

LIBRARY Need to be installed for changing cursor:
sifflet-lib
Just do "cabal install sifflet-lib"

ISSUES WITH CROPPING:
onButtonPress widgetGetPointer gets a Point(top left corner) say p1 and onButtonRelease widgetGetPointer gets another Point(bottom right corner) say p2. First time, it works fine, but if I again try to crop by dragging the mouse over the cropped image, it takes a new point onRelease, but somehow remembers the previous point p1, thus making crop second time act in a weird fashion.

Modified the editor.glade file to incorporate the cropping effect, but have not removed the original "editor.glade" file, rather added a new file "editor2.glade"


manishihireadme
another trial
ravi test
test hi
amitesh test

image-editor's People

Contributors

shyamupa avatar manishps824 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.