Skip to content

siddharth91/image-editor

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors