VS 2010 - Image File Much Smaller After MetaData Edit

Aug 11, 2010

I'm editing jpg metadata and when I'm finished the file is less than half the size but ok, IE I can see modified tags correctly via windows explorer. But if I edit the same file again its down to 16k and corrupted. The image being edited is the standard desert.jpg found in the picturessample pictures directory.

I'm using the following
Public Sub Put_FileMetadata(ByRef glb_UserArray() As String, ByRef glb_SecurityArray() As String, ByRef glb_InputParms() As String, ByRef glb_InError As Boolean, ByRef glb_ErrorNumArray() As Long, ByRef glb_ErrorDescArray() As String)
On Error GoTo error_handler
' Initialise Variables
[Code] .....

View 2 Replies


ADVERTISEMENT

.NET Renaming File And Retagging / Edit Image MetaData / Meta Tags?

Jan 4, 2011

How do I Edit and Save Image EXIF / Metadata / FileInfo without using an external DLL?

Project:I'm building an app for personal use to rename, retag, and organize the apocalyptic quantity of images I host on my personal website. As I have been collecting funny pictures and such for several years, there is no real rhyme or reason to the file naming conventions. Ergo, Image0001.jpg needs to be renamed to a descriptive filename, and the Metadata fields need to be filled in.

The desired process will take an existing jpg, gif, png, tiff or bmp and do the following:

load image into memory
convert bmp files to jpgs if needed (for a smaller file size, mostly)
load image tags into ImageData Structure (see below)

[code]....

View 1 Replies

Renaming File And Retagging / Edit Image MetaData / Meta Tags?

Jan 3, 2011

Project:I'm building an app for personal use to rename, retag, and organize the apocalyptic quantity of images I host on my personal website. As I have been collecting funny pictures and such for several years, there is no real rhyme or reason to the file
naming conventions. Ergo, Image0001.jpg needs to be renamed to a descriptive filename, and the Metadata fields need to be filled in.The desired process will take an existing jpg, gif, png, tiff or bmp and do the following:

[1] load image into memory

[2] convert bmp files to jpgs if needed (for a smaller file size, mostly)

[3] load image tags into ImageData Structure (see below)

[4] load file data into ImageData Structure (where needed)

[5] display image and tags for user to edit (In a Picture Box and several Text Boxes)

[6] allow editing of fields and renaming of the file

[7] write the changes to the image file

[8] go to next file.

Example:

[1] Load Image0001.jpg. Populate ImageData Structure fields.

[2] Type in Description: "lolcat ceiling cat sends son".

[3] ImageData.FileName changed to "lolcat-ceiling-cat-sends-son.jpg".

[4] ImageData.Name, .Keywords, .Title, .Subject, and .Comments changed to "lolcat ceiling cat sends son".

[5] Save file with new filename and save all new tag fields.

(Later, I will also be using SQL to build a referential database with links to the online copies of these files to allow for searching by keywords, subject, filename, etc, but that's another layer that's much easier than this one. At least to me.)

Problem:So far, several days of research have yielded almost no measurable progress. Information has apparently been inexplicably hidden behind a bunch of unexpected search keywords. Current Code as is:

Imports System.IO
Imports System.IO.Path
Imports System.Drawing.Imaging[code]........

View 2 Replies

Geting Metadata From An Image File?

Nov 27, 2010

I'm very new here and I wonder if you can help me with this.I need to get the metadata from an image file, the basic data like Image Type, Image Width,ColorModel, I already found out how to get but there are some that i dont have a clue how to retrieve:

Pixels Depth/Colors , Creation Software (for example Adobe Illustrator ) and ImageResolution (in pixels/dots per inch)

View 2 Replies

C# - Edit Metadata Of Executable?

Feb 17, 2012

I read a lot about changing the metadata of music or images, but what about normal executable? How do I edit the comment / title of them? I am using .NET 2

View 2 Replies

Reading And Modifying MP3 Audio-file Metadata With VB 2010?

Oct 8, 2010

Does VB 2010 offer native support for reading and modifying ID3 metadata in MP3 files? A brief search through MSDN shows me nothing, and I see someone says he had to write his own library of code for it. But that was some years ago, when you had to write code to access JPEG Exif metadata, and I know that's changed with the Image class and the GetPropertyItem method; so I'm hoping MP3 files have their own methods and properties now for this.

View 4 Replies

Add A Text String To An Image And Save The Original Metadata To The New Image?

Aug 20, 2010

I try to add text strings to an image but keep the metadata of the original image. The problem is How can I save ImgMetaData (from the original image) to the new image?

Here are the codes:

Public ImgMetaData As BitmapMetadata
Public myImageCodecInfo As ImageCodecInfo
Public myEncoder As Encoder

[Code]....

View 12 Replies

Preserve Image Metadata When Moved To Clipboard As An Image

Dec 2, 2011

I am writing a little program to convert LaTeX snippets to images which can be pasted into whatever program one can paste images into. It's working alright but the next obvious step is to include the source LaTeX code as a piece of metadata in the image so that the results can be modified without having to retype everything.

I have succeeded in adding a title PropertyItem with the latex encoded as an ASCII byte array as its value (id=800, type=2, value=System.Text.Encoding.ASCII.GetBytes(codestring)). I verify that the PropertyItem is really there before trying to put the image on the clipboard.

Then I do Clipboard.SetImage(myImage). The result is all of the PropertyItems are removed (my title plus anything else that was there)! I check this by doing MsgBox(Clipboard.GetImage.PropertyItems.Count.ToString) which gives zero.

This way, the copiedImage has the same PropertyItems as the original. However, new problem:

Other programs don't recognize what's on the clipboard as an image anymore, which defeats the whole purpose. I.e., if I put an image on the clipboard this way, when I try pasting into some context that accepts pasted images, nothing happens.

View 2 Replies

Write Metadata To PNG Image In .NET

Jul 22, 2010

I see more than a few questions asking how to read metadata from an image, but I haven't seen as many asking how to write metadata. Basically, I need to add one item of metadata ("ImageDescription") to a PNG image I'm generating dynamically (creating a Bitmap object and procedurally generating all the content in it).

What would be the best way to add metadata to an image with .NET either before or just after writing the file to disk?

View 1 Replies

DataGridView Image Cell Losses Resolution If Cell Size Is Smaller Than The Image Size?

Apr 30, 2012

I have just found that if a DataGridView image column's size (height & width - in pixels) is smaller than the image's original size (in my case all images are exactly 180 x 180 pixels) at the time the cell is populated then the image is automatically being converted to a lower resolution I assume to fit the image completely within the size of the cell). How can I stop the automatic scaling of the image?

The image below show the same file displayed twice, both at 60x60 pixels ('Thumbnail' column) and a blowup of the image (PictureBox populated via the CellMouseEnter event) to it's right. You'll notice the resolution of the first blowup is far less the the second. so, what made the difference in the resolution of the blowups is? In the second blowup's case I'd first stretched the image column's width to ~180 pixels and set the row height to match (via the ColumnWidthChanged event) then populated the DataGridView then stretched the image column to 60 pixels (its minimum).

View 11 Replies

VS 2010 - Retrieving Metadata Of Individual Files

Oct 6, 2011

I'm using VS2010 Express. I have a VB.net project, where I need to find the metadata of individual files; Artist, Author, Comments, etc. (Specifically I need to find the video length in time of .wtv files). I have searched, but could only find VB6 examples and other code snippets that simply didn't work as they required some retired com or dll to do it. How do I do it in the latest VB.net? NOT VB6, C# or anything else. VB.Net in Visual Studio 2010 Express.

View 20 Replies

Extract Metadata From WMV File?

Feb 1, 2010

I am currently trying to create a simple application that will show me the metadata for a wmv file (I'm not trying to get the data for any other video file type at the moment) but I am having some trouble finding a way of doing this.

I have Googled and I have found some downloads that you can get to do this for you, but I would prefer to do this without having to use any third party components. I would have thought that this would be possible maybe through windows media player component or something.

View 1 Replies

Possible To Embed MetaData Into File?

Jan 9, 2009

I have some PDF files that my application generates and stores on my machine. Now each file has a persons name and address string related to it in a database. E.g.
Filename | FirstName | Email
The files can be selected within the application UI and emailed out. Now I don't want to have to hit the database each time since there are alot of files. So , how embed the two strings FirstName and Email into the file itself, so when I load it into a FileInfo object there is someway to access the extra data.

View 1 Replies

File I/O And Registry :: Read Metadata From Movie File?

May 29, 2009

I want to read the meta data from a movie file and place the result in to a textbox.I've googled it and found no good samples for vb.net =( The data I'm interested in are the bitrate and the resolution and the extensions I'm interested in are .wmv, .avi and .flv the extension isn't known when the program loads because the movie is going to be inputted by the user..

View 1 Replies

View / Modify File Metadata

Oct 4, 2007

I am developing desktop applications using .NET 1.0,1.1 thru VS 2002. I need your help. I want to view/modify file metadata like Author, Title, Company, etc. that file may be a txt / doc / exe / xml / html / pdf any format... I found an example for this in CodeProject site. In that project they give dsofile.dll and source code for viewing/modifying file metadata. I tried to register that dll using regsvr32.exe (regsvr32 dsofile.dll). But it couldn't be registered. even i tried to download setup file from microsoft site but it was not found. Please help me to view/modify file metadata info.

View 9 Replies

VS 2010 Edit Word Or Pdf File?

Jan 17, 2012

what I need do is: I have an original file, it can be office word file, or pdf file. In the file, there are some words that are encrypted, so, it reads like: blah, blah, this is the word: xxxxx, blah, blah In my program, I decrpted the xxxxx, now, I want to put it back and generate the new file. How can I do it? for word file, I guess MS office library will work. how about pdf file?

View 2 Replies

VS 2010 - Resize A Label So Its Smaller Than The Parent Container?

Nov 18, 2011

I'm looking for a way to insert a label into a flowlayoutpanel without it having to scroll horizontally. Therefore, autosize is out of the question. I have it right now so it doesn't exceed the flowlayoutpanel using the

[Code]...

View 3 Replies

VS 2010 Make A Form Resize On Smaller Screens?

Nov 15, 2011

I made a program on a computer with a big screen.I set it to open in 'maxamized state' , and I took away the top, so you can't close/resize/minimize it. How can I get the form to automatically resize to the screen size??

2) Is it possible to make a form ( in visual basic express edition 2011) not close when user shuts down computer and/or logs-off ...maybe run in back grond..?

3) Is there a code ( in visual basic express edition 2011) that can make the program start automatically when a user logs-in ?

4) Is there a code that can make something happen (e.g. play music, etc.) from e.g. 7:00 A.M. - 10:00 A.M.

View 1 Replies

VS 2010 - Possible To Edit Or Replace Config File?

Jan 27, 2012

I have a program with the connection string to my database in the config , this file is in the main directory where the software is installed. My question is: Other people can edit or replace this config file with other for example to connect my program to his database? or edit other settings in the config ? so my program will work with a edited or replaced config file?

View 9 Replies

.net - Split A Large File Into Smaller Files?

Oct 8, 2011

I have a large file (2.7GB). I need to split it into smaller files. How to split a large file into smaller files using VB.NET 2003? Cannot use LINQ and the resources (cpu and memory) on operating environment are very limited (it is a shared hosting environment).

View 1 Replies

Split Word File Into Smaller Files?

Jan 30, 2012

I've a word file i open using the word object library.... now i need to split it into a number of files divided by the numbering, ie the file is in the format[code]...

View 3 Replies

VB : Delete Words Smaller Then 5 Letter From A File?

Jan 15, 2012

I just downloaded a Dictionary Words list .txt( containing all dictionary words ), every word is on a line.What i need is only words > 5 letters ( length > 5 ). S o i though about making a Visual basic software that delete words < 5 letters from the file.

This is how i read a file from VB
Dim FILE_NAME As String = "C:UsersOwnerDocuments est.txt"
Dim TextLine As String

[code].....

View 4 Replies

Split Binary File Into Smaller Byte Blocks Like 1MB?

Jul 3, 2009

Im working on a FTP Server (File Transfer Protocol) where i can download files.The problem occoured when i was about to download a 4BG large file from the server when i only had 3GB RAM on the server computer and the function to read the binary files was " data = File. ReadAllBytes("Files File001.7z") "... so how do i split the binary file into smaller byte blocks like 1MB?I've been trying this which seems to have been a total failure.[code]

View 11 Replies

Error 354: File Metadata 'microsoft.sharepoint.workflowactions.dll' Not Found

Sep 15, 2009

i added its reference to the project i added also the dll to the assembly error 354:file metadata 'microsoft.sharepoint.workflowactions.dll' not found what shall i do in this case

View 2 Replies

When Click On A File The Bottom Pane Shows The Files Metadata

Apr 19, 2010

In windows explorer on Windows 7 (and Vista I believe), when you click on a file the bottom pane shows the files metadata. What I am particularly interested is the files Tag. If you click into the tag field, Windows will give you a list of tags. The list appears to be random and incomplete. So I have two questions. Is there a way to retrieve a list of a file tags on the system and is there a way to add to the list of tags in the Windows file pane?

View 1 Replies

Edit The Rows And Columns Of An Excel File Using Vb 2010 Express?

Apr 6, 2012

I want to edit the rows and columns of an excel file using vb 2010 express. NOTE : I dont want to open .exl file but want my program to read and edit them according to user. PS : I want to edit them according to cell number.

View 6 Replies

Edit Image In Asp.net?

Mar 19, 2012

I need to edit image in asp.net. just functionality like ms paint color brushes. how can i get this using system.drawing namespace on web form.

View 1 Replies

How To Edit The Ink Image

Feb 25, 2010

I am using the Ink object and storing the data in database as Image Data type.I want to edit the image after reading and again store back to data base. Is it posible to edit the Ink once it is saved.

View 2 Replies

Edit Image Brightness In Program 08?

Jul 14, 2010

How I can change an external image (of your choice from files)'s brightness levels. Such as making the image 200% brighter and then saving it as the original image.

View 1 Replies

Interface And Graphics :: ScaleTransform - How To Edit Image

Jan 22, 2011

I vagely understand how to edit an image using Graphics. I can rescale an image using scaletransform but I want to be able to use a dynamic scale i.e., given an image with (x,y) coordinates, I want x_new = x_old + y*Factor so that when the image is stretched one end is stretched more than another.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved