Page 1 of 1

Picsend picture browser and emailer

Posted: Thu Jul 15, 2010 2:02 pm
by Fangbeast
http://members.westnet.com.au/bangfeast ... cSender.7z

My family needed something very simple (rather than a full fledged graphic program requiring a science degree) to browse images and attach them to and email and send so I made one.

..Browse for pictures on your hard drive: jpg; jpeg; bmp; png; tga; tif
..Mark the ones you want in the photo list and click the email button.
..Select the user from the built in SQLIte address book database.

Send!

You have the email sending window with an attachment list from which you can delete by double left clicking on an attachment.

You have a setup button to input your outgoing mail server details (Doesn't do SSL)

You have an address book form to add, edit and delete your email targets.

Double left click on a displayed picture to show a larger version of it. (I haven't quite worked out the sizing math but it works okay).

Do what you want with the code, it does what I want.

Re: Picsend picture browser and emailer

Posted: Thu Jul 15, 2010 3:51 pm
by Rook Zimbabwe
This is cool!!! Great Job Fangles!!!

I hereby suggest this be named PicChunker or PicThunker

I can see this becoming the new twitter!!! :mrgreen:

Re: Picsend picture browser and emailer

Posted: Fri Jul 16, 2010 6:29 am
by Fangbeast
Update. Same link as before.

The current width, depth, height and filename are shown on the main screen underneath the picture.

Some of the messages were wrong, fixed.

Double click on picture to show larger version added.

The below bit of code in _ShowAlbumPicture(ModeFlag.i = 1) is not quite right as I am not good with the math and it crashes (rarely) on some pictures, even though LoadImage creates a valid handle (Debugged it).

I can live with it:)

Code: Select all

        If CurrentImageWidth.i > 390 And CurrentImageHeight.i > 495
          ResizeImage(#Image_picsender_temp, 390, 495, #PB_Image_Smooth)
        ElseIf CurrentImageWidth.i > 390 And CurrentImageHeight.i < 495
          ResizeImage(#Image_picsender_temp, 390, #PB_Ignore, #PB_Image_Smooth)
        ElseIf CurrentImageWidth.i < 390 And CurrentImageHeight.i > 495
          ResizeImage(#Image_picsender_temp, #PB_Ignore, 495, #PB_Image_Smooth)
        ElseIf CurrentImageWidth.i < 390 And CurrentImageHeight.i < 495
          ResizeImage(#Image_picsender_temp, CurrentImageWidth.i, CurrentImageHeight.i, #PB_Image_Smooth)
        EndIf
        SetGadgetState(#Gadget_picsender_picture, ImageID(#Image_picsender_temp))

Re: Picsend picture browser and emailer

Posted: Tue Jul 20, 2010 2:02 pm
by Fangbeast
New update uploaded, link in first post.

1. All messages overhauled and are more uniform. Some more to go.

2. Preview image made smaller and shifted to the lower left.

3. Double left click on preview image to show larger format.

4. Photo list has width, height and depth indicators, will be filled later.

5. All preview errors have been fixed thanks to forum suggestions.

6. Create catalogue button added (code to follow shortly).

7. Single click selection of photos changed to permanent attachment list, you can add from anywhere.

8. Attachment counter added to statusbar.

9. Double click on an attachment in the main window to remove it. Statusbar updates with attachment count.

10. Email attachment window name and paths fixed.

11. Double click on an attachment in email window to remove it. Mail window updates with attachment count.

12. When adding to main window attachment list, items are auto sorted using Gnozal's PureLVSort.

To Do: Lots!!

To Fix: My picture resizing code (as usual).

Re: Picsend picture browser and emailer

Posted: Sun Aug 01, 2010 7:24 am
by Fangbeast
**UPDATE**

1 Clicking on an attachment in the attachment list will also now show the picture.

2 The list of attachments are now saved at exit and reloaded at start

3 Attachment count shown on list load

Re: Picsend picture browser and emailer

Posted: Sun Aug 01, 2010 1:04 pm
by Fangbeast
**UPDATE** (Another quick one)

I needed the attachment list to search for missing files on reload and show it to the user. So I added an extra icon that replaces the standard one in the attachment list when the attachment is missing on program reload.

Status bar also shows the name of the current photo being listed or if it is missing.

Can't think of anything else right now.