473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting EXIF data from external images (http URLs)

Hi all,
exif_read_data() doesn't support URLs
(http://php.net/manual/en/function.exif-read-data.php ) but I would
like to do that with the minimum traffic and overhead possible.
A naive solution would be downloading the whole target file locally and
then call exif_read_data() but that means a lot of overhead traffic
considering I only want the exif header.

My approach would be getting just the header but

1) Did anyone implement it already?

2) Is it possible? Any suggestions/advices about how to acheive it? (I
know some php but I'm far from being an expert)

Thanks in advance

Alfonso Acosta

Nov 28 '06 #1
1 4924
Alfonso Acosta wrote:
exif_read_data() doesn't support URLs
(http://php.net/manual/en/function.exif-read-data.php ) but I would
like to do that with the minimum traffic and overhead possible.

A naive solution would be downloading the whole target file locally
and then call exif_read_data()
Sounds like exactly what you'd need to do.
but that means a lot of overhead
traffic considering I only want the exif header.

My approach would be getting just the header but
But you'd need to get the whole file to read the exif info, wouldn't
you, because the exif info is part of the file and not separate from
it.
1) Did anyone implement it already?

2) Is it possible? Any suggestions/advices about how to acheive it? (I
know some php but I'm far from being an expert)
What sort of exif information are you wanting to extract? Given that
images are generally optimised before being put online, most (if not
all) the exif data will have been removed as it's unnecessary for
display on a website and just adds overhead.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Nov 29 '06 #2

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

Similar topics

1
by: Henk ten Bos | last post by:
Hi All, I would like to extract the EXIF data from JPG-images. Does anyone know of a Visual Basic class and/or demo (with source) that will show how to achieve this? thanks! Henk
0
by: leo | last post by:
hi there i'm using gene cash's EXIF.py module to find out the shoting time of an jpeg image. this module works usually like a beauty, but some images raise an exception: Traceback (most...
6
by: john_williams_800 | last post by:
Hi; I am writing an html page that will live on one server in an ms windows network, but access pictures from a directory on another ms windows server in the network. I know in html the...
2
by: Roel Schroeven | last post by:
Hi, I'm looking into processing images with EXIF data. I've been looking around and I've found a number of Python modules that read EXIF data, but I did not find a module for writing EXIF data....
4
by: FayeC | last post by:
I have tried to use a php code (found it online) to create a gallery but I am wondering if thereare any other PHP options besides using EXIF. The reason is that the images I am using for the...
6
by: Edward | last post by:
I have been doing some research about embedding images in HTML using the data URL src method of the format: <img src="/-/data:image/gif;base64,<DATA>"> My question is, how does one generate...
5
by: TheGanjaMan | last post by:
Hi everyone, I'm trying to write up a simple image stamper application that stamps the Exif date information from the jpegs that I've taken from my digital camera and saves the new file with the...
14
by: Frank | last post by:
I see that ImageFormat includes exif. But I can't find out if I've System.Drawing.Image.FromStream or something like it can read and/or write that format.
1
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.