PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 22nd, 2006, 03:14 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2002
Posts: 217
Red face Why is this hard-coded?

In image-inc.php:

function resize_jpeg( $image_file_path, $new_image_file_path, $max_width=480, $max_height=1600 )

Not sure about this? I'm having problems with image sizes or memory. Can I make this bigger?
CavySpirit is offline   Reply With Quote
Old September 22nd, 2006, 03:55 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Sep 2002
Posts: 217
So I added the code referenced in this thread: PHP + GD memory error

and I added some additional output parameters to debug the issue. Here is my result on the error:


The image you submitted exceeds the maximum allowed size.
Please resize your image.

memory limit=,
php memory =0,
file memory =25050432
image stats0=2592 (image width)
image stats1=1944 (image height)
image stats2=2 (image type)
image stats bits = 8
image stats channels = 3
constants, pow1, pow2 = 65536, 1048576

I also added this:
ini_set("memory_limit", "48M");

to the top of both pp-inc.php and uploadphoto.php. Neither is taking, obviously. I think it's too late in the script.

I changed the hard-coded line above to 3000 and 3000 to try to get this example to load.
CavySpirit is offline   Reply With Quote
Old September 22nd, 2006, 09:21 AM   #3 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
It's only a default value should the function be called without those parameters; it's not an actual hardcoded limit.

The actual max sizes are set in the Admin Option; there is an option to resize images down automatically if they exceed your limits, too.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Post Hard Drive Crash - watermark.php failed SLix Photopost Pro How Do I...? 3 July 26th, 2006 11:28 PM
DAM Cookies AGAIN!! Why is this so hard.......... xrayhead ReviewPost Installation & Upgrades 3 February 18th, 2006 11:13 AM
Need a couple additional fields - how hard to change? Quarterbore Before You Buy 1 April 26th, 2005 01:56 PM


All times are GMT -5. The time now is 08:49 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0