473,748 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write IPTC data to jpeg files - iptcembed()

Hi,
I'm trying to do a photo album with php. The admins should be able to
write comments, descriptions etc. into the jpeg files via a web form. I
tried to implement this with the (still undocumented) function
iptcembed() and I didn't get it working properly. After hours of
debugging I found the following note in php.notes:

"This function [iptcembed()] currently only works for images that have
IPTC data embedded in them already."

Ok, that's exactly what I've found out myself so far but now my
assumption seems proofed.

Does anybody know a different way to write IPTC-data to jpeg-files that
do not aready have IPTC fields included? I haven't found anything in
Google yet... Any piece of source code may be helpful.

Thanks in advance,
Markus

PS.: There is an example at http://at.php.net/iptcembed that's exactly
where I started from. As mentioned before, this also works only if an
image already contains parsable IPTC data.

PPS.: Someone may wonder why I'm not using the EXIF fields - That's
quite simple, most EXIF fields are, according to spec, not to be
changed. IPTC can easily be imported into databases etc. etc.

Jul 17 '05 #1
0 3020

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

Similar topics

0
1330
by: Mads Jacobsen | last post by:
Hi, Can anyone help me with a c# class that can read the IPTC from jpeg files? Regards, Mads
2
5007
by: Lionel | last post by:
Hi, I need to read the IPTC *keywords* tag from a jpeg file. I can read all the EXIF tags with this little part of code: string MyFile = "c:\afile.jpeg" Image MyImage = Image.FromFile(myFile); System.Text.ASCIIEncoding Value = new System.Text.ASCIIEncoding(); MessageBox.Show(Value.GetString(MyImage.GetPropertyItem(270).Value));
0
3235
by: zeng | last post by:
Is there a way for ASP.net to read and write IPTC info from a JPEG file? Just like what PHP can do? Really appreciate your answer.
1
1485
by: Lionel | last post by:
Hi, I need to read the IPTC *keywords* tag from a jpeg file. I can read all the EXIF tags with this little part of code: string MyFile = "c:\afile.jpeg" Image MyImage = Image.FromFile(myFile); System.Text.ASCIIEncoding Value = new System.Text.ASCIIEncoding(); MessageBox.Show(Value.GetString(MyImage.GetPropertyItem(270).Value));
1
12410
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.
3
13199
by: Merlin | last post by:
Hi all Not a pure c# question, but is someone here knowing a good lib in C# to read and write exif and iptc information in image files ? thanks in advance.. -- //\/\\3rL1n_______
8
5876
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";
1
2779
by: SPE - Stani's Python Editor | last post by:
Phatch is a simple to use cross-platform GUI Photo Batch Processor Phatch handles all popular image formats and can duplicate (sub)folder hierarchies. It can batch resize, rotate, apply perspective, shadows, rounded corners, ... and more in minutes instead of hours or days if you do it manually. Phatch allows you to use EXIF and IPTC tags for renaming and data stamping. Phatch also supports a console version to batch photos on web...
0
1170
by: Math | last post by:
Hi, i'm using a small function found somewhere to watermark a JPG before outputting to a website. Since watermark change according to some other info, I can't create watermark JPG before. This is the function: function watermark($sourcefile, $watermarkfile) { //Get the resource ids of the pictures
0
8996
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
8832
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
9386
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
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
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
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.