View Full Version : Default photo size
Pekka
5th of October 2006 (Thu), 11:28
Path editor default size selection is gone in EE 2. The default size is now chosen by pixels in basecode/SETUP_settings.php, and also explained there
// default photo size served. Value is in pixels.
// "800" means the default size is a photo where all sides are smaller than or equal to 800 pixels.
// "0" means smallest available
// "99999" means largest available
// THIS SETTING HAS NO EFFECT (RANDOM RESULT) UNLESS PHOTO SIZES ARE STORED IN DATABASE.
$s_default_size = "0";
jeronimo
24th of October 2006 (Tue), 09:07
I am right if I say that it should be possible to read the screen dimensions from a visitor, and then provide them the best size for his/her resolution.
E.g.
Screen res is 600-800; EE gives default 400-600 image
Screen res is 1024-768; EE gives default 600-800 image.
Javascript can read the resolution, but also write out the rule? And what file should contain the script.
seanspeng
31st of October 2006 (Tue), 17:17
I was not able to do retrieve size successfully. It always says FAILED. But I was able to get the photo size via PHOTO EDITOR. What could be wrong that I should check?
How do I delete one path in use called "Big"?
Thanks!
wkitty42
31st of October 2006 (Tue), 21:23
sean, make sure that you have the admin/temp and admin/Upload/ee_temp_upload directories... when i did my install/setup, my method of extraction from the zip did not pull those two directories because they were empty... i had to manually create them... when i did that, all of my ftp tests worked without errors and retrieve size also started working... i found that i had two pics that wouldn't take but that was due to other problems from back in the v1.22 days...
seanspeng
1st of November 2006 (Wed), 00:20
Thanks for your reply and info. I found that my paths were all wrong. After correcting them, it's working again. I did not find a quick way to remove one size from the database. I ended up doing it one photo after another.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.