Photoroom Basic

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Photoroom Basic

Post by marksmithhfx » Mon Nov 21, 2011 5:22 am

Chris, on another topic... I downloaded your Photoroom Basic but wasn't able to get it to do anything on a Mac. It would not let me open any of my image files (tif, jpg or png). Does it depend on file extensions (I have all of my hidden)?

Otherwise, the feature rich menu set looked intriguing.

Best,
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

cbodell
Posts: 61
Joined: Wed Nov 09, 2011 7:27 pm

Re: Photoroom Basic

Post by cbodell » Mon Nov 21, 2011 1:44 pm

Hi Mark,

Yes, opening an image is dependent on the open with filter in the file menu, on my other post, Klaus mentioned a way to filter for mac users, and suggested the proper code. You can also disabled the filters for opening a file, by removing the "with type" or "with filter" part of the code. That way all files will be shown.

It is pretty interesting some of the things you can do with the imageData, you should definitely have a look at all the filters. In the next update, ill have that problem fixed so it will be usable cross-platform. I was supposed to have it done already but haven't got around to it, i've been to busy adding filters, and correcting values in the menus. In the meantime, have a look, all filters are free to use!

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Photoroom Basic

Post by Klaus » Mon Nov 21, 2011 2:38 pm

Hi Chris,

my code will work CROSS PLATFORM Mac AND Win!

Best

Klaus

cbodell
Posts: 61
Joined: Wed Nov 09, 2011 7:27 pm

Re: Photoroom Basic

Post by cbodell » Mon Nov 21, 2011 10:13 pm

Hi Klaus,

Thanks again for the code sample!

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: Photoroom Basic

Post by marksmithhfx » Tue Nov 22, 2011 5:04 am

cbodell wrote:I was supposed to have it done already but haven't got around to it, i've been to busy adding filters, and correcting values in the menus. In the meantime, have a look, all filters are free to use!
No problem, I'm looking forward to it. (actually found a work around. If you use the open file dialog and then use he search tool that is in the dialog to find a picture file the dialog will let you select it). One thing I did notice is that some of the pictures I opened looked distorted in that they seemed squished a bit. Have you noticed that as well?
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

cbodell
Posts: 61
Joined: Wed Nov 09, 2011 7:27 pm

Re: Photoroom Basic

Post by cbodell » Tue Nov 22, 2011 8:30 am

Hi again Mark,

Yeah, i have the picture control well locked at a specific size for now, testing reasons, mostly for testing the filters and effects. I plan to integrate a scroll feature but right now i'm still developing features, and other filters. I write one, then think of another one! :lol:

Because the picture well is locked though, it distorts the image to fit the well size. You can set the lockLoc property to false if you prefer, then when a photo is opened, it will automatically generate the appropriate size. Keep in mind though, because the Rev/LiveCode can't parse data as fast as some other languages, the effects would take longer if the photo is larger. I'm going to have a loading indicator eventually. So a user wouldn't think the engine has froze.

cbodell
Posts: 61
Joined: Wed Nov 09, 2011 7:27 pm

Re: Photoroom Basic

Post by cbodell » Wed Nov 23, 2011 2:43 am

Hi Users,

I have an update verison available for Photo Room. If anyone has any suggestions or features they would like to see, please notify my. I have adjusted many of the menu filters and added new as well. Also removed some obselete features as the functions have been changed causing mis-rendering. I am thinking about incorporating a tool palette, and color palette for better customization of filters and tools.

If anyone has previous experience with image data and would like to see there effects added to the software/stack, please let me know! Credit wil be given to those who contribute!

Email: cbodell@live.com

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Photoroom Basic

Post by bn » Wed Nov 23, 2011 4:44 pm

Hi Chris,

thanks for posting the new version.

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
is still in there.

There is a breakpoint in the open menu

Code: Select all

if the tImageSizeType of cd 1 of this stack is "pixel" then[code] going into debug mode when opening an image file.

maybe you find time to encapsulate the enableMenu and disablemenu handler in the card script with Lock screen/unlock screen?

When testing your new versions I first fix these.

With all the nice effects you have added testing without a undo or revert to original is tedious, command-O does not work on a Mac, so its going to menubutton file etc.

Kind regards

Bernd

cbodell
Posts: 61
Joined: Wed Nov 09, 2011 7:27 pm

Re: Photoroom Basic

Post by cbodell » Wed Nov 23, 2011 8:39 pm

Hi Bernd,

I actually fixed those issues, including the breakpoint, i forgot to update the skydrive with the new version. Ill do that next.

Thanks Bernd

Post Reply