Difference between revisions of "Thunderbird Image Auto-Resize"

From CDOT Wiki
Jump to: navigation, search
(Project News)
(Project Releases)
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Project Name ==
 
== Project Name ==
  
Editing Thunderbird Image Auto-Resize
+
Thunderbird Image Auto-Resize
  
== Project Description ==
+
== Description ==
  
Write an extension for Thunderbird that gives functionality similar to that of Outlook, where image attachments in an email can be automatically re-sized to one of a set of smaller sizes. This is helpful for users who would otherwise try to send megabytes of image data, when they can safely scale the images down and still share their pictures with friends.
+
An extension for Thunderbird that gives functionality similar to that of Outlook, where image attachments in an email can be automatically re-sized to a smaller size. This is helpful for users who would otherwise try to send megabytes of image data, when they can safely scale the images down and still share their pictures with friends.
 
 
References: #maildev
 
  
 
== Project Leader(s) ==
 
== Project Leader(s) ==
Line 15: Line 13:
 
== Project Contributor(s) ==
 
== Project Contributor(s) ==
  
NOTE: only Project Leader(s) should add names here. You '''can’t''' add your own name to the Contributor list.
+
Alexander Schmitt<br>
 +
David Humphrey
 +
 
 +
== Related bugs in bugzilla ==
 +
 
 +
[https://bugzilla.mozilla.org/show_bug.cgi?id=401991 Bug 401991] <br />
 +
 
 +
== Important Project links ==
 +
 
 +
[http://mxr.mozilla.org/thunderbird/source/mail/components/compose/content/MsgComposeCommands.js#2492 Line 2492] AttachFile() function <br/>
 +
[http://mxr.mozilla.org/thunderbird/source/editor/ui/dialogs/content/EdImageOverlay.js#386] SetActualSize() method <br/>
 +
[http://mxr.mozilla.org/thunderbird/source/editor/ui/dialogs/content/EdImageOverlay.js#406] doDimension enabling() method <br />
 +
[http://www.imagemagick.org imagemagick] to work with image files
 +
 
 +
== Project Releases ==
 +
[http://www.clutchimedia.info/zaid/autoresizejpeg3.xpi Version 0.3]
 +
 
 +
[[Media:autoresizepic2.xpi | Version 0.2]]
 +
 
 +
[[Media:autoresizepic.xpi | Version 0.1]]
  
 
== Project Details ==
 
== Project Details ==
 +
0.3 Version -
 +
  The Addon now supports all major formats and successfully resizes them.
 +
 +
0.2 Version -
 +
  The Addon now recognizes many file format for resizing.
  
 
0.1 Version -
 
0.1 Version -
   As per the conversion I had with David, the 0.1 release will be a simple addon which will
+
   An Addon capable of handling only JPEG file format for resizing.
  read and display the dimensions of the image files uploaded.
 
  
 
== Project News ==
 
== Project News ==
 +
13/Dec/2008<br>
 +
- Small change in release plan. I am releasing the completed addon using ImageMagick's "convert.exe" in 0.3 version. The
 +
  0.4 version will be utilizing the new code that Mozilla has incorporated into Thunderbird.
 +
 +
5/Dec/2008<br />
 +
- So I am able to package a static build version of ImageMagick's "convert.exe" along with my Addon. Just when I was ready to
 +
  release this important update, the beta version of Thunderbird 3 has included Mozilla's image resizing code. With this I am now
 +
  aiming to use that to have a much cleaner addon for image resizing.
 +
 +
30/Nov/2008<br />
 +
- I am trying to use the nsIProcess to use a Open Source command line
 +
  program called [http://www.imagemagick.org ImageMagick]. When successful
 +
  it can resize the other formats that are only detected right now.
 +
 +
14/Nov/2008<br />
 +
0.2 released:
 +
- The addon can now detect the following file formats: JPEG PNG JPG DPX EXR GIF SVG TIFF BMP
 +
- The JPEG and JPG attachments issue is fixed and works well for resizing them.
 +
- Other formats are detected but cannot be resized in this release.
 +
 +
8/Nov/2008<br/>
 +
0.2 expectations:
 +
  - I would like to now add the ability to detect all of the major picture formats as currently it only triggers on JPEG formats.
 +
  - Fix the javascript errors in 0.1.
 +
 +
5/Nov/2008
 +
  Finalizing the 0.2 release features.
 +
 +
18/Oct/2008
 +
  Released the 0.1 version. Although not the latest version I have, this is the one that works, the changes after this have
 +
  caused some java script error which I am in the process of fixing.
 +
 +
15/Oct/2008
 +
  Compiling the extension to upload the 0.1 release. Some javascript errors are popping. I think it is due to the CR/LF problem.
 +
 +
13/Oct/2008
 +
  Modified the 0.1 deliverable based on current status.
 +
 +
5/Oct/08
 +
  Added some more links. Found that Thunderbird allows you to customize the size of the embedded image, they have a dialog for it.
 +
  It is in the file -> mozilla/ editor/ ui/ dialogs/ content/ EdImageOverlay.js
 +
 +
  This is BIG boost to my search and looks like will make things much easier. 0.1 release now seems closer.
 +
 +
1/Oct/08
 +
  Added some links to Mozila Bugs related to my project and other important links
 +
 +
28/Sep/08
 +
  Found some extensions that do similar things in Thunderbird, will be of great help to this project
 +
 
25/Sep/08 -
 
25/Sep/08 -
 
   So I was finally able to add my simple extension into Thunderbird. Now to study how to get the
 
   So I was finally able to add my simple extension into Thunderbird. Now to study how to get the
Line 31: Line 102:
 
   First step is to make a simple extension in Thunderbird, unfortunately was not able to do so
 
   First step is to make a simple extension in Thunderbird, unfortunately was not able to do so
 
   successfully on the first run. Still poking at it.
 
   successfully on the first run. Still poking at it.
 
  
 
15/Sep/08 -
 
15/Sep/08 -
 
   Created Initial project page
 
   Created Initial project page

Latest revision as of 13:56, 13 December 2008

Project Name

Thunderbird Image Auto-Resize

Description

An extension for Thunderbird that gives functionality similar to that of Outlook, where image attachments in an email can be automatically re-sized to a smaller size. This is helpful for users who would otherwise try to send megabytes of image data, when they can safely scale the images down and still share their pictures with friends.

Project Leader(s)

Zaid Ghansar My Blog

Project Contributor(s)

Alexander Schmitt
David Humphrey

Related bugs in bugzilla

Bug 401991

Important Project links

Line 2492 AttachFile() function
[1] SetActualSize() method
[2] doDimension enabling() method
imagemagick to work with image files

Project Releases

Version 0.3

Version 0.2

Version 0.1

Project Details

0.3 Version -

  The Addon now supports all major formats and successfully resizes them.

0.2 Version -

  The Addon now recognizes many file format for resizing.

0.1 Version -

  An Addon capable of handling only JPEG file format for resizing.

Project News

13/Dec/2008

- Small change in release plan. I am releasing the completed addon using ImageMagick's "convert.exe" in 0.3 version. The
  0.4 version will be utilizing the new code that Mozilla has incorporated into Thunderbird.

5/Dec/2008

- So I am able to package a static build version of ImageMagick's "convert.exe" along with my Addon. Just when I was ready to 
  release this important update, the beta version of Thunderbird 3 has included Mozilla's image resizing code. With this I am now
  aiming to use that to have a much cleaner addon for image resizing.

30/Nov/2008

- I am trying to use the nsIProcess to use a Open Source command line
  program called ImageMagick. When successful 
  it can resize the other formats that are only detected right now.

14/Nov/2008
0.2 released:

- The addon can now detect the following file formats: JPEG PNG JPG DPX EXR GIF SVG TIFF BMP
- The JPEG and JPG attachments issue is fixed and works well for resizing them.
- Other formats are detected but cannot be resized in this release.

8/Nov/2008
0.2 expectations:

 - I would like to now add the ability to detect all of the major picture formats as currently it only triggers on JPEG formats. 
 - Fix the javascript errors in 0.1.

5/Nov/2008

  Finalizing the 0.2 release features.

18/Oct/2008

  Released the 0.1 version. Although not the latest version I have, this is the one that works, the changes after this have 
  caused some java script error which I am in the process of fixing.

15/Oct/2008

  Compiling the extension to upload the 0.1 release. Some javascript errors are popping. I think it is due to the CR/LF problem.

13/Oct/2008

  Modified the 0.1 deliverable based on current status.

5/Oct/08

  Added some more links. Found that Thunderbird allows you to customize the size of the embedded image, they have a dialog for it.
  It is in the file -> mozilla/ editor/ ui/ dialogs/ content/ EdImageOverlay.js
  This is BIG boost to my search and looks like will make things much easier. 0.1 release now seems closer.

1/Oct/08

  Added some links to Mozila Bugs related to my project and other important links

28/Sep/08

  Found some extensions that do similar things in Thunderbird, will be of great help to this project

25/Sep/08 -

  So I was finally able to add my simple extension into Thunderbird. Now to study how to get the
  extension onto the compose mail screen.

20/Sep/08 -

  First step is to make a simple extension in Thunderbird, unfortunately was not able to do so
  successfully on the first run. Still poking at it.

15/Sep/08 -

  Created Initial project page