Hi.
I try to use PEL (pel.sourceforg e.net) to copy some exif information from
orginial camera jpeg to resized copy with php gd library. But without
success:(
1) File is uploaded to server with html upload form.
2) File is testes is it image/jpeg ?
3) If yes:
4) $copy = copy($_FILES['fotofile_'.$nr x]['tmp_name'],$destination_f ile);
5) if file height or width is too large - it's scaled:
$new_img = imagecreatetrue color($new_x, $new_y);
$img = imagecreatefrom jpeg($destinati on_file);
$org_x = imagesx($img);
$org_y = imagesy($img);
imagecopyresamp led($new_img, $img,0, 0, 0, 0, $new_x, $new_y, $org_x,
$org_y);
imagejpeg($new_ img, $destination_fi le.'_',$zcompre ssion);
unlink(destinat ion_file);
rename($destina tion_file.'_',$ destination_fil e);
imagedestroy($n ew_img);
imagedestroy($i mg);
Now I've got smaller scaled new $destination_fi le. But it is without any
exif data now.
How to write a few exif information to it ? I need Camera Manufacturer,
Camera Model, Date&Time and ExposureTime, and ApertureFNumber
Of course I know how to read these informations before rescaling (I use
exif_read_data php function). But I cannot wirte them to new image ........
Thanx a lot for help
Tomm 0 2213 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Useko Netsumi |
last post by:
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
|
by: Markus Bulmer |
last post by:
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 currently only works for images that have
IPTC data embedded in them already."
|
by: Weasel |
last post by:
Does anyone know about a free API to insert textual data (like EXIF)
into JPEG's and/or TIFF's?
I've looked around but haven't found anything worth using. Most of the
things I've found are, naturally, tools for extracting info from
omages but I want to insert data...
Regards Peter
|
by: Vladish |
last post by:
Hi all,
I wonder, if anybody here has any source code or component, which can
read EXIF informations from JPEG pictures. Or some good, easy to
understood, description of JPEG files. I didn't find anything useful on
web yet.
Thanks very much for any help.
Vladish
|
by: BluDog |
last post by:
Hi
I was wandering if anyone knew if it was possible to add custom EXIF
tags (such as Photographer and Title) to a JPEG image, or to modify
the existing tags (such as ImageDescription).
There is an extremely good article on Code Project for reading these
tags, but I cannot find any information on how to modify them:
http://www.codeproject.com/cs/media/photoproperties.asp
| |
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 date stamped on the lower right
part of the picture. (I'm not an advanced programmer so my code may not
be 100% efficient - sorry, I'm still learning)
Everything works fine until the saving part. I've been able to read the
file into a...
|
by: alnorth29 |
last post by:
I'd like to be able to access EXIF data in a JPEG file without expanding the file into a Bitmap object.
I've searched for a ready made solution for a few hours and all the existing VB.NET code I've found loads the file into a Bitmap object first with all the accompanied memory usage.
I could hard code something myself, but it feels like something someone should have done before and there's no point in duplicating their effort. Do any of...
|
by: Roger |
last post by:
Does anybody have a pointer to a Python library/utility that will
extract the chrominance and luminance quantization tables from JPG images?
I have been using the _getexif method from PIL, which works fine, but
doesn't extract the quantization data. I am a bit fuzzy on the
terminology, but the quantization data seems to be JPEG data rather
than EXIF data. One utility that extracts the quantization tables is
JPEGsnoop -- there is a...
|
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";
|
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...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |