[PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread Juan Antonio Ruiz Zwollo
Hello:

Is it possible with PHP to check at what quality/compression a JPEG file has
been saved? I.e. I have dummy.jpg that I got from somewhere else and I
want to know with what quality it was saved.

The second Note of the User Contributed Notes on the PHP manual regarding
the function imagejpeg (http://www.php.net/manual/en/function.imagejpeg.php)
mentions such a code, and the user hints that he/she is able to read the
quality of a jpeg, but there is no code given (I have tried contacting the
user but the comment is quite old):
==
If you call imagecreatefromjpeg and load a jpeg with 75% quality and output
it with imagejpeg u can specify the new quality for e.g. 90% and u can
increase quality, but output will look like 75% quality picture with the
only difference that the new pic is bigger.

So u should check the source quality before u alter output quality. In most
cases a quality of 75% is sufficient. For previews i use 50%.

But i make a check if source quality is lower than my personal output
quality, i will not chance source quality !

Hope that helps your Webserver and keeps the traffic low :-)
==

Regards,


Juan Antonio



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Connect to oracle on another host

2002-10-01 Thread Juan Antonio Ruiz Zwollo

Hi!

I've been writing PHP scripts for a long time but never needed to get data
from an Oracle database. Till now.

Can somebody give me a hand? The Oracle database is running on another
server.

The information I have been given is:

host (e.g.  somewhere.somewhere.com)
username (e.g. USER_NAME)
pw   (e.g. MY_PW)
databse : PROD
Function: F_CLAVE_SI_NO(loginnr)

Basically what I need to do is contact this databsae, execute the function
F_CLAVE_SI_NO($myloginnr), and get the results.

The function F_CLAVE_SI_NO is a function from the Oractle database itself;
it is no one written in PHP.

Thank you for your help!

Kind regards,


Juan Antonio Ruiz Zwollo
www.acalli.org






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Date functions Unic Epoch

2002-06-09 Thread Juan Antonio Ruiz Zwollo

Hi!

Say, has anybody re-written the date funtions so they work with any date and
not be crippled by the unix timestamp range limit?

I am looking for a function which will do the equivalent of
   date(w,mktime(0,0,0,8,30,1934))
but that will actually *work*.

Does anybody know a way to return which day of the week (0-7) it is for
dates outside the unix timestamp range?

I wish this stuff would be build into PHP.

Saludos,


Juan Antonio Ruiz Zwollo






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php