Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

I have a simple question that may make some of you laugh

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 10-02-03, 02:38 PM Thread Starter   #1
rapter_F22
Registered

 
rapter_F22's Avatar 

Join Date: Apr 2002
Location: North Dakota

 
I have a simple question that may make some of you laugh


Ok I'm just currious if there is a way to attach meta tags to a picture. I am creating a gallery and i need to be able to search the gallery some how with a few key words on each of the pictures. The gallery consists of around 2,000 pictures i believe and an efficient way of navigating it is needed. any help or suggestions?

Rapter

__________________
AMD Athlon 64 X2 6000+
Asus Crosshair
rapter_F22 is offline   QUOTE Thanks
Old 10-02-03, 02:52 PM   #2
Deathknight
Member

 
Deathknight's Avatar 

Join Date: Sep 2002
Location: Chicago

 
Hrm don't think you can add meta tags to them. I would suggest a database if you need to do any kind of searching.
Deathknight is offline   QUOTE Thanks
Old 10-02-03, 03:04 PM Thread Starter   #3
rapter_F22
Registered

 
rapter_F22's Avatar 

Join Date: Apr 2002
Location: North Dakota

 
Is it possable to make a data base in access that is able to be searched from the web. the gallery is for a web page that is to be able to be accessed by the public

__________________
AMD Athlon 64 X2 6000+
Asus Crosshair
rapter_F22 is offline   QUOTE Thanks
Old 10-02-03, 03:18 PM   #4
Deathknight
Member

 
Deathknight's Avatar 

Join Date: Sep 2002
Location: Chicago

 
Oh definatly, the question is how comfortable are you with writing the code for it?
Deathknight is offline   QUOTE Thanks
Old 10-02-03, 08:58 PM   #5
JigPu
Inactive Pokémon Moderator

 
JigPu's Avatar 

Join Date: Jun 2001
Location: Vancouver, WA

10 Year Badge
 
Most image formats AFAIK contain data about the size of the image, and include markers to indicate the end of image data. This means it may be possible to simply insert comment/meta data at the end of image files and use those for searching. However, I wouldn't doubt that some file types or viewers may say that images modified in such a way are either corrupt or not an image at all. A few image formats specifically allow embeded comments, so it may be possible to leagaly put in comment/meta data into images for searching. Below are some pages on different image types.


This page shows how JPEGs are put together, and show that a specific marker (preceded by 0xFF) notifies the viewer of the end of image data. So you should be able to stick comments at the end, or use the built in commenting function I've heard they have (looks like an APP field used for that purpose).

This page has specifications on the GIF89a format, and talks about embedding comments. It also links to this page going very in depth to the specification and covers how comments are placed. Once again, a 'trailer' finishes the GIF, so it may be possible to append comment data at the end if you don't want to follow spec.

PNG I've heard of quite a few cases of people just appending data to the end that is ignored by viewers, so you should be able to stick comments there with no problem.

I haven't heard of anybody adding comments to BMP, however the specification shows that height and width are stored in the file, so it may be possible to tack on stuff at the end without problems, but it might be picky.


So it should be possible to write a program to both write comments to common image formats, as well as search through files for comment data. However, it's probably not going to be easy to write if you want to have the program follow the image's spec and wite comments correctly....

JigPu

__________________
.... ASRock Z68 Extreme3 Gen3
.... Intel Core i5 2500 ........................ 4 thread ...... 3300 MHz ......... -0.125 V
2x ASUS GTX 560 Ti ............................... 1 GiB ....... 830 MHz ...... 2004 MHz
.... G.SKILL Sniper Low Voltage ............. 8 GiB ..... 1600 MHz ............ 1.25 V
.... OCZ Vertex 3 ................................. 120 GB ............. nilfs2 ..... Arch Linux
.... Kingwin LZP-550 .............................. 550 W ........ 94% Eff. ....... 80+ Plat
.... Nocuta NH-D14 ................................ 20 dB ..... 0.35 C°/W ................ 7 V


"In order to combat power supply concerns, Nvidia has declared that G80 will be the first graphics card in the world to run entirely off of the souls of dead babies. This will make running the G80 much cheaper for the average end user."
"GeForce 8 Series." Wikipedia, The Free Encyclopedia. 7 Aug 2006, 20:59 UTC. Wikimedia Foundation, Inc. 8 Aug 2006.
JigPu is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 05:16 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?