Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  HOME    TRACKER    Visual Basic

JPEG Image Conversion

I'm looking for some code which will allow my vb program to scan images of different sizes from my scanner, convert the image to a standard size and store the image as a .jpeg file. If anyone knows how to do this, I'll take my hat off to you.

View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Jpeg Image Conversion
I require some code to allow my vb program to scan images of different sizes from a scanner, convert the image to a standard size and store the image as a .jpeg file. If anyone knows how to do this, I'll take my hat off to you.

BMP To JPEG Conversion
I have an Access2000 image database loaded with JPEG's and want to write a program in Access VBA that will put text on several JPEG's and email them.

Access doesn't include the VB PictureBox control and the Image control doesn't permit editing. The Kodak Image Edit control has great annotation features but will only save images as BMP's, TIFF's & AWD's and these image formats are too big and don't display on the email message.

Is there a control/code that will convert a BMP to a JPEG and work within Access VBA? Any advice?

RAW File Conversion To Jpeg
Does anyone know how to do this from VB without using the Canon and Nikon SDKs - maybe using the Microsoft Raw Viewer dlls?

Bmp To Jpeg File Conversion
i want to convert a .bmp file to .jpeg file. is there any function or control available to do this.

JPEG Image
Hi all,

I want to create a program that just displays a JPEG image in a picture box for about 3 seconds...

Can anyone help me produce this ?

Thanks for any help

Saving Jpeg Image
Hi all!

I have a picturebox with an image in it (it's a screenshot actualy) and i would like to save this image to a jpeg file using freeimage. Anyone have a clue of how this can be achived?

Help is apprichiated!

How To Compress An Bmp Image To Jpeg

I am working on a server - client application in which i need to send tge windows on the client's desktop to the server. Thes images are stored as BMP's and are to be compressed into jpeg before they are to be transferred to the server.

I need a code or suggestion regarding how to compress an bmp into jpeg and that compression should be as fast as possible.

How To Compress A Jpeg Image In Vb
Hi all,

We are developing a server-client application in which the server has to monitor all the windows that are opened on the client's desktop i.e., all those windows that are opened in the client's system must be displayed on the server's desktop.All the changes made on the client system should be updated on the server system simultaneously.

Now, to do this we have to copy all those windows on the client's desktop to the server desktop. We have to copy those windows as JPEG files. But because of the huge size the system is slowing down a bit.How should we compress this image so that the size will be reduced and will not effect the system speed.

We need some suggestions or code to do this.

Any kind of help is highly appreciable .

Thank you,

Saving A Image As JPEG
Does anybody know how to save an image from a picture box as a jpeg file,GIF file or some smaller file formats instead of the bitmap files which are large in size????

Saving A Image As JPEG
Does anybody know how to save an image from a picture box as a jpeg file,GIF file or some smaller file formats instead of the bitmap files which are large in size????

How To Resize And Jpeg Image
Yelooooooooooo Expert,

Please I need to resize a jpeg image and save the new image size back to it location in a folder.

Can anybody help me.



How Can I Get JPEG Image By Using Active X Control?
How can I get a JPEG image by using Active X Control?

At present, I have no idea about it. Please help me.

Because of Printing problem of Active X, I changed the way.

After Active X running, I want to insert an JPEG or other image

file to web page which is captured Active X Area.

Then I can solve printing problem, I think...^^..?

Somebody help me.

How To Save Image In .jpeg Or .gif Format
I am using SavePicture to save image to file. However, it seem to save only BMP format. How to convert or save image into .jpeg/.gif format.

Image File Paterns (.bmp .jpeg .png)
Hi, I have a program that lets you browse documents to find pictures. It will show all the pictures in the folder you have currently selected, but it only seems to show .bmp images. How could I make it so it could see .jpeg .jpg and .png images types also? I have attached the form I am working with.

Read JPEG Image Into Stream
How do I read a JPEG image as a Stream with VB6?

Resizing An Jpeg Image Using Picture Box
guys i ned help im new in visual basic so i was hoping that your comments and reply or even answer would be for my level. thanks on advance.

i have three(3) Picturebox


what i will do is place a jepg image in picturebox 1 size is 180x76 pixels(for example)

then place another jpeg image in picturebox2 size is 140x80 pixels (for example)

in picturebox3 i wantto show the jpeg image of picturebox2 with the size of picturebox1 (180x76 pixels)

how can this be done?

Resize A Jpeg Image To 100 X 100 Pixels
i have a program that saves data to a text file and a picture as a bitmap when the save button is clicked but before i can load the picture into the picbox i have to resize it to 100x100 using another pice of software. How would i resize my image when it is loaded to 100x100 (the source image is quite large as it is from a digital camera)

thanks in advance................ RedAngel

Save Image In .jpeg Format

I have a access table stores pictures in binery format
now i want to store in .jpeg format in hard disk.
Is it possible.. pls help







Resizing A JPEG Image File
Does anyone know of a module, COM object, DLL, etc that will take a JPEG file, resize it and write it back out?

I've tried the ImageMagick libraries in C++ but they're horribly complicated, underdocumented and full of bugs it seems. I even tried the PerlMagick libraries which plum didn't work at all.

It'd be nice to have a COM object that does something like this, but I'd be willing to write my own VB object that uses the functions in a precompiled DLL even one of those even exists.

Any help would be appreciated. Thanks.

Need Help With Generating Report W/ Jpeg Image

I need help with creating a form with a special jpeg/gif seal. I never done this on Visual C++ or VB. Until now, I created all forms with ansi C++ with HP escape characters to draw lines, boxs, and text. This form will contain boxes which is populated with database information read from a text file.

Since this form contains a special seal on the upper right, I don't think it can be done with old fashion ansi C++. How can I create a form with Visual too and create it as a simple exe to just print the form to a specified printer.



Convert Jpeg Image To A Matrix Form
hi guy..i'm new in this forum..istly,sory 4 my broken english..emm i was tasked to design face detection using VB6..i wonder that VB6 is capable to convert grayscale image to a matrix form..if it does,can smebody gve me a code..i also hv to cal the image file from certain dirctory...pleazee help me due date is almost coming...

Saving Clipboard Data ( Image ) To JPEG
Hello fellows!
I'm trying to save a JPG file from the clipboard data without using any DLLs.
I found this code on another topic:

It works very well when opening an image from disk and saving it to JPG, but I'm not getting this code to work with clipboard data.
The code when the program fills the data ( that will be saved in the future ) is in this sub:

Private Sub mnuOpen_Click()
Dim MyPic As StdPicture
Dim FileName As String

FileName = FileDialog(Me, False, "Open Picture File", "Picture Files|*.jpg;*.jpeg;*.gif;*.bmp;*.wmp;*.rle;*.cur;*.ico;*.emf|All Files [*.*]|*.*")
If Len(FileName) > 0 Then
On Error Resume Next
Set MyPic = LoadPicture(FileName)
If Err.Number = 0 Then
Set m_Image = New cImage
m_Image.CopyStdPicture MyPic
If mnuAutosize.Checked Then SetFormSize m_Image
AdjustScrollBars m_Image
Me.Caption = App.Title & " - " & FileTitleOnly(FileName)
mnuSave(0).Enabled = True
MsgBox "Can not load picture file" & vbCrLf & """" & FileName & """", vbExclamation, "File Load Error"
End If
Set MyPic = Nothing
End If

End Sub
As you can see, he loads an image file using LoadPicure() and then passes the result to the m_Image.CopyStdPicture, which receives an StdPicture as an argument. I tried to load the picture this way, but its not working:

Set MyPic = Clipboard.GetData
It seems that the data from the Clipboard.GetData is in a different format than the data that LoadPicture() returns, so the cImage class cannot "understand". What can I do to get this code to work ( withou using Intel JPG dlls and other ones )?

Thanks a lot!

How To Load A JPEG Image In Data Report
Dear Friends,

I have a problem in loading a JPEG/bmp image in Data Report.

Let says, I have a table in MSAccess 2000, and the field are

ProductID ProductName ImageFile
1 ABCD C:ImageImage1.jpg
2 EFG C:DataImage2.jpg

the 'ImageFile' field contains the path of the image file

if I use form object, it is easy to load the image. I just write the code like this :


Is Anybody know how to LoadPicture in a DataReport and the path of the picture is in a table ?

please help me

VBA Question: Open JPEG, Get Image Size
In VBA in ArcMap, I need to open a JPEG file and get its image size. I've added a reference to System.Drawing, so now I can at least Dim a variable as a Bitmap, but when I try to type in the Bitmap constructor specifying the file path, basically VBA doesn't recognize the syntax. What am I missing?


How To Save The Picture Image In JPEG Format
Hi Everyone,

am developing a picture in the picture box while run time in Visual Basic.I need to save the picture in JPEG format,am not able to do it..It can be saved in BMP format,but not ion JPEG format..

Anyone knows ple let me know how to save the picture image in JPEG format or converting the BMP format to JPEG format


Convert HTML Pages To Jpeg Image
     i want to convert HTML pages to JPEG image in vb6. so that i can show that jpeg image in listview as thumbnail. Please suggest me the way to converting web pages into images.



How To Convert JPEG Image Into Binary Data?
Hello Professional,

Am tasked to create a VB6 windows based application that converts Images to binarry data and put them in a flat file before sending them to the web server for processing.

My main tasks are to convert this images to binary and put them in a CSV file.

Am hoping someone in here would want to help me out.

However, I wouldn't mind if the help comes in a .NET language as am certain I would be able to convert the codes to VB6

Thank you.

Can I Load A Image File E.g. Jpeg Display In Msgbox?
Hi, how can i load a image file, e.g. jpeg format, display in msgbox ? Thank you.

Saving A Bitmap,Gif Or JPEG Image To An Access 2000 Database
Can somebody help me with this one,

How do you save the contents of the Image Control as an embedded image in an Access 2000 database table, I've tried all weekend and just cannot work it out ?

help !

Use Of Picture Boxes - JPEG Image Content, Zoom And A Design Time Query
I wish to use several large picture boxes to display diagram information which is available from JPEG files on my drive.

1. When I load one of these to the picture box, only the top left corner of the JPEG image appears in the picture box. How may I cause the whole of my JPEG image to be visible?

2. Having achieved that, if it is possible (and surely it is) is it then possible to make the picture box zoom in on a particular section of the image such that it can be examined in much greater detail?

3. Finally, I will have about ten of these large picture boxes all placed on top of each other on my form (so that they can be as large as possible). At run time this is no problem because only one at a time will have its visible property set to true, but is it possible to do something similar at design time such that the lower level picture boxes may be edited. At design time it seems that the last box I have placed on the form always stays on top, hiding those placed previously. It is agreat nuisance to have to drag aside all the later placed boxes in order to get at and work on an earlier one.

Suggestions will be gratefully received.

ca moore

Image Conversion Without Api
Im looking for a way to convert various image file types to bmp without using an API or picture box. I need this as I need my program to give the exact same output file regardless of what the user may have installed on their system. I know it will take different alogerithems for each file type. the program right now reads the file into memory as a string variable. The converted file will usually be saved or even shown. Any help will be greatly appretiated. thanks.

Image Conversion PNG To BMP
I have a PNG file that I need to convert to a BMP format. Is there a way I can do this in code behind-the-scenes?? I have to setup this batch thing that will sit and wait for files and automatically convert them. Thanks

Image Conversion
i'm writing a remote administration tool for my network (yeah i know there are others out there but too bad ) and it's all working except the screenshot images are still bmp wich as you know are well over 2 and 3 meg depending on screen resolution, i wan't to convert them to jpg but if possible i do NOT want to use an outside program or dll, any ideas? or if it comes down to it does anyone know of a small dll that will cover it? but preferabally without.. thank you

PDF 2 Image Conversion
i want to convert pdf files to image format (jpg or bmp). How can i do this?

Image Conversion Thru Vb?
I have an image stored in a database. I need to be able to view this image in a webbrowser control as a 'logo' for the report.

Is it possible to convert this image to a jpeg format, or any format viewable from a web browser.

Currently, I am able to extract the image from the database, and save it as a bitmap to a file in a specified location. So I need to be able to convert this image.

Thanx for any help!

Image Conversion
Anyone know of an API call to convert an image to a different format (ie bitmap to jpg) ? This is for a dll that I am creating so I cannot do it through a control, it must be done through code. Any help is appreciated.

Image Conversion
Recieved your mail.
Thank you.,
Is there any third party OCX or any kind of tool to convert Autocad drawing to other picture formats(*.dwg to *.bmp/jpg/gif) using Visual Basic6?

Image Conversion
Is there any possibilities to convert *.DWG
to other formats?

Image Conversion ?
I've made a picture viewing software now the biggest problem is setting the wallpaper to a jpg file. I think it is neccessary to set the jpg to bmp first so how can I convert a jpg to bmp and set it as wallpaper ? Thanx

Image Conversion ,,,,,,,,,,,,,
Hello Friends

I need some help on IMage conversion ,,,where one can open a image in one format and save it into another format,,like bmp file opened and saved it in tiff or pcx or png file conversion....

I am looking for open source but if some body can tell me how and where to start seriously thinking to write of my own,,,

Is any body is there who can help me

THanks a lot in advance


Image Conversion
Hi, I would like to know if there is any api, dll, or ocx which shall help me convert a 24 bit bmp to jpg or 16 color bmp?

Image Format Conversion
Does someone know how to save a stdPicture as a jpg image or a bmp image using native VB coding?
I have been asking this question over a large number of coding forums but never got a piece of code which actually worked for me.

Image Conversion Into String
how can i convert a string into hexadecimal or string format.

Image To Text Conversion
Hi Friends ..........

i need to convert image file to text............

e.g i have driving liscence . i scan it and save it as a image and then from that image i get the values and insert them in a database in their respective fields............
really have no idea rite now that how to do this...........

Image Data Conversion In VB6
I need to read the Images from an Optical drive convert it to PDF file and save that into Oracle Database as BLOB. Total Images I need to read are arrond 500000. I am using Mircosoft Image Control and third party ocx controls such as
ImgAdmin, ImgEdit to read the image.
In this process I need to save the image to the local drive (reading from Optical drive) , convert to PDF and save into the database.
But while saving the image using Saveas () method, it required to display the image. This steps takes lot of time.
Does any one knows any other alternative to save as for saving the image.
I really need to speed up this process.
Any inputs will be highly appriciated..


Image Conversion Quality!
I currently am taking 800x600 and higher resolution jpg images, and reducing their size to 150x200. I am using DIjpg.dll to save the images again as jpg.

Im using strechbit to make the images go from 800x600 to 150x200, but for some reason, the images lose a heap of quality, some times they go too dark, some times lose color. Here's the code im using for strech bit...

VB Code:
For i = 0 To filBrowse.ListCount - 1            loadStr = filBrowse.Path & "lowres" & filBrowse.List(i)        Picture1.Picture = LoadPicture(filBrowse.Path & "" & filBrowse.List(i)) 'or any supported picture format            With Picture2                   StretchBlt .hdc, 0, 0, .ScaleWidth, .ScaleHeight, _                   Picture1.hdc, 0, 0, _                   Picture1.ScaleWidth, Picture1.ScaleHeight, _                   vbSrcCopy                   .Refresh                   SetStretchBltMode Picture1.hdc, WHITEONBLACK            End With                               'Required by DIjpg.dll        SavePicture Picture2.Image, "C: mp.bmp"         'Save to JPEG        retval = DIWriteJpg(loadStr, hshQual.Value, chkProg.Value)                            If retval = 1 Then  'Success            Picture2.Picture = LoadPicture(loadStr)        Else                'An error occured            MsgBox "DIWriteJpg did not succeed"        End If            Kill "C: mp.bmp"        Next

Im not sure if this problem is to do with the dll. or strech bit?

Image Type Conversion
Thanks to Sam for the advice on my previous post, but here's another!

The standard VB "SavePicture" call _always_ saves as bitmaps - does anyone know a way to either:

1. Save from a picture box to a jpeg or gif
2. Convert an image already saved in a particular format



Acad Image Conversion
Is there any OCX controls or Tools for
to convert *.DWG files to other picture formats(*.jpg/bmp/gif) through VisualBasic6?

Copyright 2005-08, All rights reserved