Yes, aside from the text in the menus, open and everything else seems to works fine on Windows 7 and LC 4.6.4.just to be sure, the "open file" snytax that I provided will work on all platforms!
Image Manipulation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 430
- Joined: Sun Feb 13, 2011 8:43 pm
- Location: Seattle, USA
Re: Image Manipulation
Re: Image Manipulation
I thought i had fixed the "revert to origional" problem, hmmm. Im havent got a chance to update quite yet. But i definitely will. Thanks for the updates friends.
I agree as well, it is fairly slow at imageData retrieval. I was wondering, is that becase it has to retrieve outside the environment, ie, through the actual file data? Or is that due to the charToNum & numToChar conversion process?
Lastly, has anyone gotten a chance to critique the weather effects, and mosaic tile patterns, or the dissipation effects and pixel drifts? Wondering how i did. I guess it'd be alot easier if the menus were readable. Will update when ive debugged!
Thanks alot,
Chris
I agree as well, it is fairly slow at imageData retrieval. I was wondering, is that becase it has to retrieve outside the environment, ie, through the actual file data? Or is that due to the charToNum & numToChar conversion process?
Lastly, has anyone gotten a chance to critique the weather effects, and mosaic tile patterns, or the dissipation effects and pixel drifts? Wondering how i did. I guess it'd be alot easier if the menus were readable. Will update when ive debugged!
Thanks alot,
Chris
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
-
- Livecode Opensource Backer
- Posts: 430
- Joined: Sun Feb 13, 2011 8:43 pm
- Location: Seattle, USA
Re: Image Manipulation
Yes, Revert to Original does not seem to work. Also Filter Undo has the same problem. Just a blue image appears.
Mosaic works good, but takes a while. Some kind of spinner, or please wait indicator, would be nice.
Outline Edges is amazing!! Here look: Weather Effects, Water Droplets does nothing. Frosty Flakes should be more dense.
Pixel, Random Grayscale, crashed on, " put random((tAmount)) into pHold".
Opening a photo takes about 4 seconds. Not too bad. Though it's a little odd, because the photo always appears in black and white, before full color is rendered. Looking forward to the next update.
Mosaic works good, but takes a while. Some kind of spinner, or please wait indicator, would be nice.
Outline Edges is amazing!! Here look: Weather Effects, Water Droplets does nothing. Frosty Flakes should be more dense.
Pixel, Random Grayscale, crashed on, " put random((tAmount)) into pHold".
Opening a photo takes about 4 seconds. Not too bad. Though it's a little odd, because the photo always appears in black and white, before full color is rendered. Looking forward to the next update.
Re: Image Manipulation
Update for Photo Room - Better readability and updated menu items. Next for update ("Open File", "About Menu",& *Extra filters will be integrated)
Chris Bodell
Chris Bodell
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
Re: Image Manipulation
Update for Photo Room,
I've incorporate more filters and update menus. Some of the menu items weren't scripted with correct values. Also, some filters were distorting the image completely. Many have been fixed but there are still a few issues. Many of the filters overlay pixels in a wrapping effect. A Simple determination of pixel location in correspondence to the edges of the image would fix the problem, but there are so many filters, i have to track down individually which filters are problematic.
The Convolution filter has now been added with many effects, next update should have a 5x5 matrix, where ill add other effects. Water ripple effects will also be in the next update version, as well as more options/parameters for the reflection function. The skin detection function will be better adjusted for different skin tones. I also need to fix the red-eye reduction filter; since it is auto-detected, i need to adjust the function code. Several different methods of Grayscaling has been added, color-preservative, eye-corrected, median - min - max, & single-channel methods.
I have somewhat reverted to the original menu bar. Mac Users, please post if there are any issues with usability.
Any Ideas please post! *Have not fixed the "Open..." option for cross platform usability yet.
I've incorporate more filters and update menus. Some of the menu items weren't scripted with correct values. Also, some filters were distorting the image completely. Many have been fixed but there are still a few issues. Many of the filters overlay pixels in a wrapping effect. A Simple determination of pixel location in correspondence to the edges of the image would fix the problem, but there are so many filters, i have to track down individually which filters are problematic.
The Convolution filter has now been added with many effects, next update should have a 5x5 matrix, where ill add other effects. Water ripple effects will also be in the next update version, as well as more options/parameters for the reflection function. The skin detection function will be better adjusted for different skin tones. I also need to fix the red-eye reduction filter; since it is auto-detected, i need to adjust the function code. Several different methods of Grayscaling has been added, color-preservative, eye-corrected, median - min - max, & single-channel methods.
I have somewhat reverted to the original menu bar. Mac Users, please post if there are any issues with usability.
Any Ideas please post! *Have not fixed the "Open..." option for cross platform usability yet.
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
-
- VIP Livecode Opensource Backer
- Posts: 3999
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Image Manipulation
Hi Chris
thank you for the update. I am on a Mac and changed the open menu. However it takes about 10 seconds for the first image to load. If you do a "lock screen" in the enableMenu handler in the card it is near instantaneous.
Other than that: too bad the revert to original is gone, I have to reload the image after an extensive effect. The way you did it in every menu was hard to maintain and debug. I suggest if you plan to restore the feature to make it a handler higher in the hierarchy which is called from the menus. I did change the non-working handler for the restore in the last version for the filter menu and it worked.
I just blocked the code and than it worked.
There are very nice effects but it is tedious to test them since you have to reload the original all the time.
Klaus' suggestion for a filter to open the files
works fine on a Mac. If it works on Windows also it would solve the problem of opening a file. The way it is now it is not useable on a Mac unless one goes into the code and disables the filter.
Kind regards
thank you for the update. I am on a Mac and changed the open menu. However it takes about 10 seconds for the first image to load. If you do a "lock screen" in the enableMenu handler in the card it is near instantaneous.
Other than that: too bad the revert to original is gone, I have to reload the image after an extensive effect. The way you did it in every menu was hard to maintain and debug. I suggest if you plan to restore the feature to make it a handler higher in the hierarchy which is called from the menus. I did change the non-working handler for the restore in the last version for the filter menu and it worked.
Code: Select all
case "Revert to Origional"
put the imageData of img "Image" into tData
lock screen
-- set the tZoom of img "Image" to the width of img "Image" & comma & the height of img "Image"
-- set the itemDel to comma
-- set the width of img "Image" to item 1 of the tOrigionalSize of img "Image"
-- set the height of img "Image" to item 2 of the tOrigionalSize of img "Image"
-- set the topleft of img "image" to the tTopLeft of img "Image"
set the imageData of img "Image" to the tOrigionalData of img "Image"
-- set the width of img "Image" to item 1 of the tZoom of img "Image"
-- set the height of img "Image" to item 2 of the tZoom of img "Image"
-- set the topleft of img "image" to the tTopLeft of img "Image"
unlock screen
set the tLastData of img "Image" to tData
set the tPriorData of img "Image" to empty
break
There are very nice effects but it is tedious to test them since you have to reload the original all the time.
Klaus' suggestion for a filter to open the files
Code: Select all
answer file "Select an Image File:" with (tName & "." & tDefault) with TYPE "|jpg,gif,png|" titled "Photo Room"
Kind regards
-
- VIP Livecode Opensource Backer
- Posts: 3999
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Image Manipulation
Hi Chris,
filter sharpen -> neat sharpen throws an error for me.
repeated Reflections enlarge height of image
Kind regards
Bernd
filter sharpen -> neat sharpen throws an error for me.
repeated Reflections enlarge height of image
Kind regards
Bernd
Re: Image Manipulation
Hi guys,
I repeat it for the third time here on the forum:
My "Open..." script DOES work crossplatform on Mac and Windows!
Best
Klaus
I repeat it for the third time here on the forum:
My "Open..." script DOES work crossplatform on Mac and Windows!
Best
Klaus
Re: Image Manipulation
Klaus,
I've just incorpated your script in the "Open..." menu item, hopefully i've done it correctly, works fine so far on Windows, i cant test on other platforms though. If you could have a look at the code on the new update, that would be great, i haven't used that syntax before, so i'm not sure if it's implemented correctly. Seems to be though! Thanks again, i've been meaning to get to that!
Bernd,
I'll have a look at that filter, if i remember correctly, it runs a convolution filter array. If so, may be an extra char in the item, ill have a look though.
As for the reflection, i had it resize the image for test reasons, but it seems to be preferred that the image dimensions remain so ill stick with that route. On the other hand, your last post, i havent got around to the "Open..." efficiency yet, but ill have that fixed for the next update. It's definitely incosiderate of the code, that problem arises for me at random times so ill fix that as well.
* I have coded 2 of the "Import" options, Form Clipboard & Screenshot
And i'm working on the "Revert" option, and Undo /Redo filter options.
I've just incorpated your script in the "Open..." menu item, hopefully i've done it correctly, works fine so far on Windows, i cant test on other platforms though. If you could have a look at the code on the new update, that would be great, i haven't used that syntax before, so i'm not sure if it's implemented correctly. Seems to be though! Thanks again, i've been meaning to get to that!
Bernd,
I'll have a look at that filter, if i remember correctly, it runs a convolution filter array. If so, may be an extra char in the item, ill have a look though.
As for the reflection, i had it resize the image for test reasons, but it seems to be preferred that the image dimensions remain so ill stick with that route. On the other hand, your last post, i havent got around to the "Open..." efficiency yet, but ill have that fixed for the next update. It's definitely incosiderate of the code, that problem arises for me at random times so ill fix that as well.
* I have coded 2 of the "Import" options, Form Clipboard & Screenshot
And i'm working on the "Revert" option, and Undo /Redo filter options.
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
-
- Posts: 10
- Joined: Sun Jan 25, 2009 3:27 pm
Re: Image Manipulation
Hi !
Edit - Preferences gives an missing stack error... (modal stack "OdellB Image Preferences")
Edit - Preferences gives an missing stack error... (modal stack "OdellB Image Preferences")
-
- VIP Livecode Opensource Backer
- Posts: 3999
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Image Manipulation
Hi Chris,
both "Redwood" and "Mahogany" throw an error, there is no "addFilter_ConvertColorScaleTestTest" handler in the card script, it seems to be a typo: changing it to "addFilter_ConvertColorScaleTest" works.
Kind regards
Bernd
Code: Select all
case "Redwood"
get addFilter_ConvertColorScaleTestTest(the long id of img "Image","171,78,82")
break
case "Mahogany"
get addFilter_ConvertColorScaleTestTest(the long id of img "Image","192,64,0")
break
Kind regards
Bernd
Re: Image Manipulation
Hi guys,
I have to create a preference pane. I might be able to have that in the next update, there probably wont be too many preferences but ill get onto that. Thanks for the update Bernd as well! Ill fix that typo.
I have to create a preference pane. I might be able to have that in the next update, there probably wont be too many preferences but ill get onto that. Thanks for the update Bernd as well! Ill fix that typo.
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
Re: Image Manipulation
Hi Chris,
please copy this (tested and working) line and put it into your "Open..." handler and remove your line:
answer file "Select an Image File:" with (tName & "." & tDefault) with type "|jpg,jpeg,gif,png,bmp|" titled "Photo Room"
And please don't modify it unless you are REALLY sure it will work out allright!
Best
Klaus
please copy this (tested and working) line and put it into your "Open..." handler and remove your line:
answer file "Select an Image File:" with (tName & "." & tDefault) with type "|jpg,jpeg,gif,png,bmp|" titled "Photo Room"
And please don't modify it unless you are REALLY sure it will work out allright!
Best
Klaus
Re: Image Manipulation
Oh good, ill stick that in there, thats somewhat what i had but does mac not support the labeled version, so users can swap image types?
Thanks Klaus
Thanks Klaus
Chris Bodell
Photo Room - (Editor Download)
Photo Room - (Editor Download)
Re: Image Manipulation
cb...
Do you mean this?
Best,
Mark
Do you mean this?
Code: Select all
answer file "Select a file..." with type "Some file|abc|ABC!" or type "Other file|xyz|XYZ!"
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode