473,651 Members | 2,485 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JPEG metadata

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

Question for the experts, is it wise to store information in the image file
instead of the database? Thanks
Jul 17 '05 #1
1 4028
Useko Netsumi wrote:
Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

Yes. There is a specification to embed such information, it's called
EXIF (google it). Typically it's used by digital cameras but I don't
know much more about it then that. And YES again, PHP has a module you
can compile in which provides exif functionality.
Question for the experts, is it wise to store information in the image file
instead of the database? Thanks

It's a case of horses for courses. From a data modelling and design
point of view, if the metadata has a 1:1 relationsip with the image
instance entity, then sure, why not. From a performance point of view,
it is OK unless you want to search for images using the metadata (which
you probably do). From a maintanence point of view, it's great because
you don't even have to write database code or ensure access to a
database. Same applies for persisting information elsewhere like flat
files or XML.

Ideally, if the system is to have medium to high complexity, you will
want to use a hybrid approach. Keep everything in the database but
persist the metadata to the image files anyway so that when the get
copied around, the metadata goes with them. Windows XP uses it, and many
many other photo album programs use it.

I've had a pet project for an online PHP image gallery which uses XML
flat files to persist metadata. It reads the exif data from images when
they are uploaded and keeps it in the XML file associated with that
image. This is an example of a hybrid approach. I've not tried writing
exif data though.

It all depends on how complex your application will be.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2800
by: helmi03 | last post by:
does anyone know how to get/set jpg or other image types metadata using Python. I had search in vault of parnassus and PIL, but only can read the EXIF. Long live Python!
1
2782
by: Brett Selleck | last post by:
I would like to start collecting Metadata on my XML schemas. I have searched the web for a method of automatically extracting Metadata from an XSD file and have come up empty handed. Basically what I am looking for is a VB Script or J Script that parses an XSD file and outputs the metadata in a structured format. For examle: Given this simple Schema below I would like to see the following. Schema: <?xml version="1.0" encoding="UTF-8"?>
1
8689
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
2
8788
by: EP | last post by:
I'm looking for a method by which to access Windows files metadata and have not been able to find anything in the standard modules or via Google - what is the standard approach? Shamefully I really do not understand Windows file system - e.g. is properties metadata attached to the file? if I change that metadata do I change the file's hash? how is the metadata structured? or is the "properties" metadata simply derived upon access? ...
1
12390
by: Reginald Johnson | last post by:
I'm trying display a popup on the mouseover of a jpeg image. I'm thinking of trying to populate the popup with text obtained from the image metadata. However, I haven't been able to find any information on how to do this with javascript. Is there a way to access image metadata with javascript.
0
2216
by: Jack Wu | last post by:
Hi I've spent a good majority of my day trying to figure out how to have PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I have not gotten anywhere. Could somebody please help me... I've scoured all the documentation, google, and mailing lists to no avail. I believe the problem may lay in a jpeglib problem with OSX 10.3.9, or a python paths problem.
1
2232
by: toggy | last post by:
Hi all, I am a relative novice to programming and just finding my way around VB express. I do this just out of personal interest and struggle to find projects to code any learning i have achieved is my browsing the web and incorporating this into my programs. Anyway, what i currently want to do, is to extract the metadata from my photo collection (mostly JPG's) and store them into a database preferably access. I have currently...
8
5868
by: infoseekar | last post by:
Does anyone know what's the right code to read IPTC metadata. I have the code to read EXIF metadata and it gives me alot of information which I don't need. How do I modify this code so it only give the information i required. EXIF inout code <?php $path="image.jpeg";
4
2333
by: kl2ish | last post by:
Hello Everyone, I am doing a college project. I am completely new to c# and i am creating an app which clicks a picture and categorizes it . Now i am trying to store this category in the jpeg image as a metadata information. What are the possible ways to do it ? Its just a string of data that would be decoded by my php/sql server. I was giving PropertyItems a look for this. Any suggestions would really be welcome. Thank you
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.