Go Back   Steve's Digicams Forums > Misc Forums > Remote Control

Reply
 
Thread Tools Search this Thread
Old Jun 29, 2004, 7:09 PM   #1
Junior Member
 
Join Date: Jun 2004
Posts: 13
Default

after i have transfered the image from the camera how can i compress the image farther? i want to have three copies of my image, small, medum and large. i have only seen the RAW development functions that let me change the color and lighting and other settings but i havn't seen a resolution setting. any one point me in the right place? i have seen this 3rd party program compress jpgs to specific qualitys using the sdk but i can't seem to figure out what sub he called.
(very bottom of the page)
http://www.breezesys.com/BreezeBrowser/help/raw.htm
i have a canon g5 powershot
zodiacal is offline   Reply With Quote
Sponsored Links
Old Jul 1, 2004, 1:40 PM   #2
Senior Member
 
Join Date: Oct 2002
Posts: 123
Default

Your canon software should allow you to extract jpg from the raw and then you can further compress the image to any degree you want. Keep copies of the original RAW so that you can go back if needed.


twcoffey is offline   Reply With Quote
Old Jul 1, 2004, 2:46 PM   #3
Junior Member
 
Join Date: Jun 2004
Posts: 13
Default

i wish to do it programaticly with the sdk tho.
zodiacal is offline   Reply With Quote
Old Jul 1, 2004, 3:15 PM   #4
Junior Member
 
Join Date: Jun 2004
Posts: 13
Default

*news update* i got a little closer but still need more info. the CDAddPicture() function has a picture quality paramater called CompQuality. However, this only lets me set SuperFine,Fine,Normal, etc... i still need a way to set the Picture Size or Resolution. *any help would be great*.
zodiacal is offline   Reply With Quote
Old Jul 5, 2004, 12:37 PM   #5
dug
Junior Member
 
Join Date: Jul 2004
Posts: 3
Default

hi zodiacal..

i don't think there is anything in the canon SDK that will let you 'size' an image, that is, change the height width and therefore the resolution of an image...

however, there is a OpenSource library called OpenCV that has many image processing tools that let you do things like change the resolution, change size, open and close jpegs, tiffs etc. etc. very very useful stuff...

go here for more:

http://sourceforge.net/projects/opencvlibrary/

good luck!!
dug.
dug is offline   Reply With Quote
Old Sep 22, 2004, 2:29 AM   #6
Junior Member
 
Join Date: Sep 2004
Posts: 3
Default

if you're using .net you could load the original into an image object and save it as you wish.

i.e. from http://www.bobpowell.net/jpeg_compression.htm

Code:
//Load a bitmap from file
Bitmap bm=(Bitmap)Image.FromFile("mypic.jpg");

//Get the list of available encoders
ImageCodecInfo[] codecs=ImageCodecInfo.GetImageEncoders();

//find the encoder with the image/jpeg mime-type
ImageCodecInfo ici=null;

foreach(ImageCodecInfo codec in codecs)
{
      if(codec.MimeType=="image/jpeg")
            ici=codec;
}

//Create a collection of encoder parameters (we only need one in the collection)

EncoderParameters ep=new EncoderParameters();

//We'll save images with 25%, 50%, 75% and 100% quality as compared with the original

for(int x=25;x<101;x+=25)
{
      //Create an encoder parameter for quality with an appropriate level setting

      ep.Param[0]=new EncoderParameter(Encoder.Quality,(long)x);

      //Save the image with a filename that indicates the compression quality used

      bm.Save("C:\quality"+x.ToString()+".jpg",ici,ep);
}
planir is offline   Reply With Quote
Old Mar 17, 2008, 1:56 AM   #7
Junior Member
 
Join Date: Oct 2006
Posts: 7
Default

you cant actually control the resolution via the canon sdk. you can only select the picture sizes available on the camera

you may want to consider downloading the picture and then resizing on the pc.

maybe take the picture at the highest resolution and then resize once it is downloaded


ntstatic is offline   Reply With Quote
 
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 5:00 AM.