free hit counter Cropper :: Send To FTP Plugin - Nauman Leghari's Blog
Saturday, March 31, 2007 9:51 PM laghari78

Cropper :: Send To FTP Plugin

I personally use my own host to store snapshots that I embed on this blog. Normally the workflow from taking the snapshot to FTP'ing on the server requires three steps.

 

Use FastStone Capture to take the screenshot -> Open FTPZilla -> Upload picture and note down the URL

 

Now, with the help of Cropper and the "Send To FTP" Plugin, it is reduced to a single step which saves time as well as effort.

 

The plugin will get the image stored on your hard disk by Cropper and upload it on your selected FTP address. Once the file is copied, the generated URL is automatically copied to the clipboard. Easy, isn't it?

 

The plugin will also ask you to name the target file name on the FTP Server.  You don't need to enter the file extension here. Currently, It uses the png file format and add (.png) to the file name automatically. If you press Escape or Cancel then it will use the default file name that Cropper generated automatically.

 

 

 

Download Cropper.SendToFTP.Binary.zip

-- Extract and copy the files in the plugin Cropper folder. If you already have plugins then just copy the files to the plugins directory.

 

Download Cropper.SendToFTP.Source.zip
-- You can get the Cropper.Plugins solution and add this project in that solution.

How to configure FTP Settings:

 

Make sure that you have placed the dll in the plugins directory.
Then Right Click -> Select Options -> Then Plug-ins

 

 

 

Here is a brief description of the different options:

 

FTP Address:
Name of your FTP Server. You can add directory in front of the address.
For E.g.: ftp://ftp.example.com/dir
Or ftp://ftp.example.com/dir/subdir
Or Simply: ftp://ftp.example.com/

 

Username and Password are self-explanatory. Use Anonymous/Email address for anonymous access.

 

HTTP Address:
The HTTP address which will be used to generate the final URL. 
For E.g.: If you are uploading file abc.png on FTP Address ftp://ftp.example.com/
And HTTP Address is http://www.example.com/dir
Then the generated URL will be http://www.example.com/dir/abc.png

 

Links:
Cropper:  http://www.codeplex.com/cropper
Brian Scott: http://blogs.geekdojo.net/brian/articles/Cropper.aspx

Cropper Plugins: http://www.codeplex.com/cropperplugins
FastStone Capture: http://www.faststone.org/FSCaptureDetail.htm
FTPZilla: http://filezilla.sourceforge.net/

 

Hope you'll like this plugin. Please leave a comment If you have any question about the source or the addin.

kick it on DotNetKicks.com Filed under: , ,

Comments

# re: Cropper :: Send To FTP Plugin

Sunday, April 1, 2007 3:29 PM by Anonymous

I DL'd the plugin and extracted as you said.  It created a subdirectory in the /plugins/ directory and created four files there.  I still see NO added plugin under the 'Plugins' tab.  If I drag the four files into the /plugins/ directory directly, Cropper errors out at startup..  what the heck am I doing wrong?

# re: Cropper :: Send To FTP Plugin

Sunday, April 1, 2007 4:16 PM by laghari78

Here is the directory structure from my setup.

The Root Cropper folder

\cropper\Cropper.Core.dll

\cropper\Cropper.exe

\cropper\Cropper.Extensibility.dll

\cropper\CropperExt.cs

\cropper\License.rtf

\cropper\ReadMe.htm

\cropper\Skybound.VisualStyles.dll

\cropper\FlickrNet.dll

\cropper\OneNoteImporter.DLL

\cropper\copy.bat

\cropper\plugins (Directory)

\cropper\plugins\Cropper.ClipboardFormat.dll

\cropper\plugins\Cropper.PrinterOutput.dll

\cropper\plugins\Cropper.JpgFormat.dll

\cropper\plugins\Cropper.BmpFormat.dll

\cropper\plugins\Cropper.PngFormat.dll

\cropper\plugins\Cropper.AnimatedGif.dll

\cropper\plugins\Cropper.AviFormat.dll

\cropper\plugins\Cropper.CountdownPng.dll

\cropper\plugins\Cropper.SendToEmail.dll

\cropper\plugins\Cropper.SendToFlickr.dll

\cropper\plugins\Cropper.SendToOneNote.dll

\cropper\plugins\Cropper.SendToTinyPic.dll

\cropper\plugins\Cropper.SendToFTP.dll

I have uploaded this setup at

http://www.devmobile.net/nleghari/cropper/cropper.zip

Can you download it and try? Just copy it in any directory.

# re: Cropper :: Send To FTP Plugin

Sunday, April 1, 2007 7:13 PM by Brian Scott

Awesome. great plugin and great use of the new configuration feature.

# re: Cropper :: Send To FTP Plugin

Tuesday, April 3, 2007 10:18 AM by Glenn

Great stuff.  Thanks!

Question... where are the FTP credential settings saved?  Are they encrpyted in any form or fashion?

Feature requests:

- Hide the password on the Options page.

- Allow other image formats beside PNG.

But, great stuff... exactly what I needed.

# re: Cropper :: Send To FTP Plugin

Tuesday, April 3, 2007 10:46 AM by Glenn

Found the answer to my question about encrypting credentials.  I'll add that as another feature request:

- Encrypt the FTP credentials

Also found a couple of problems trying to upload:

- Doesn't work if IE is configured with a proxy

- Need to be able to control PASV setting (I think)

Anyway, great stuff... work much appreciated.