473,387 Members | 1,548 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,387 software developers and data experts.

DPI and libGD

Hi,

Is it possible to change the DPI of an JPG image by using the libGD ?
I would prefer using it than imagemagick...

Thanks,
Vincent.

Aug 22 '07 #1
2 1995
Defacta wrote:
Hi,

Is it possible to change the DPI of an JPG image by using the libGD ?
I would prefer using it than imagemagick...

Thanks,
Vincent.
Hi Vincent,

I think you can't.
72 dpi is the 'webstandard', and imagejpeg() defaults to it.
Sorry.

Regards,
Erwin Moller
Aug 22 '07 #2
Defacta wrote:
Is it possible to change the DPI of an JPG image by using the libGD ?
I would prefer using it than imagemagick...
Dont know if PHPs gd lib can do. May you will compile your PHP with the
imagemagick PECL Extension:

pecl install channel://pecl.php.net/imagick-2.0.0RC1 for easy access
imagemagick

Ulf

--
_,
_(_p Ulf [Kado] Kadner
\<_)
^^
Aug 22 '07 #3

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

Similar topics

3
by: skubik | last post by:
Anyone else have this problem compiling PHP 4.3.3 from source under Linux (I'm using Slackware 9.0)? Under PHP 4.3.2 I had no compilation problems at all, but now all of the sudden, compiling...
6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
6
by: Encapsulin | last post by:
Hello there, I am tryin to compile PHP with GD support: # cd php-4.3.11 # ./configure \ --with-gd=/usr/local/src/gd-2.0.33/ \ --with-png-dir=/usr/local/src/libpng-1.2.8/ \...
1
by: Matthew Bates | last post by:
Hi, I'm currently trying to install the GD module for Perl on FreeBSD 4.10 and I'm experiencing some issues. I'm using the cpan to install but a make test fails, reporting: module GD:...
1
by: smackdab | last post by:
Hi, I am using MSVC to compile GD and I think I am down to my last problem (we'll see ;-) I can compile libgd.dll and libgd.lib ok but a gdtest.exe program that refers to extern font variables...
4
by: comp.lang.php | last post by:
I downloaded the tarball and while was able to compile within PHP with no problems, I am having memory timeout issues involving image manipulation with extremely large images (800K - 2mb). ...
0
by: HermannJens | last post by:
Im trying to install the GD::Graph module from cpan but it always asks me for the location of "libgd". How do i install this libgd? It seems to be very difficult to do. Im really desperate...
1
by: Drekocp | last post by:
Hello all, I stumbled across this forum after I've spent all morning trying to enable GD support, only to find out that its not even installed on my dedicated server. Right now I am running...
4
by: Giovanni Gherdovich | last post by:
Hello, I had no success in making libgd working with PHP (I run a linux system). It seems that my libgd cannot handle jpg files. When I run on my webserver the script <?php...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.