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 December 10th, 2011, 12:34 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 120
Big issues with PPC and Cloud files

Ok,

So, I have photopost and photopost classifeds running on my site. Both apps share EVERYTHING, and that means same web server, same file systems and even the same amazon cloud bucket.

I am using s3fs fuse cloud system mounted to an amazon cloud bucket. I have 288,000 images in photopost and when I access them via the app which reads offf of the amazon cloud, the response is acceptable considering what it has to do. No issues there. It takes 3 seconds to load the index page. Not the best but acceptable considering its a cloud.

However, the photopot-classifieds which from the looks of if is very similar to photopost, the page loads take 30 seconds to load and there are only 1200 images in that bucket as apposed to 288,000.

I have gone through the code and the issue is inside of the function get_imagethumb function.

Furthermore, as a side note, the calls to the function dirsize kill the system . I modifieed it just return 1. This is a bad thing with cloud files.

Does the latest version of the classifieds still use similar logic? Is there a work around for using cloud files besides the s3fs?

Thanks

Last edited by jtorral; December 10th, 2011 at 01:19 PM.
jtorral is offline   Reply With Quote
Old December 10th, 2011, 03:43 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 120
narrowed it down to a call to getimagesize which is a big overhead with a cloud
jtorral is offline   Reply With Quote
Old December 10th, 2011, 04:21 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
The photopost pro and classifieds code is highly identical you can try commenting out these lines in the function get_imagethumb in classifieds pp-inc.php but not sure what would be affected since I have not tried this

Code:
Content visible to verified customers only.
There should be no issues running a getimagesize on 12 images at a time on a server or even double that so not sure why you would have an issue.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 10th, 2011, 11:04 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 120
Yeap. getimagesize is a real killer. drastically improves when its not called.

Now for another issue with getimagesize.

When uploading images to an ad, getimagesize is called to identify the image type. ie. jpg, gif ... The problem in the function create_thumb is that you call the getimagesize against the file on the server instead of the tmp file name created by php in /tmp. I woud like to change this to get the info from the uploaded file before it is saved as the target file but cannot find in the code where this is. This would be much more efficient than issuing get and post commands that cloud files use since those tmp files are local. any help would be appreciated. and future stats gathering from images maybe can be gathered from the uploading process rather then the destination file.

Thanks
jtorral is offline   Reply With Quote
Old December 11th, 2011, 08:37 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
There is nothing wrong with the code it is simply how it is done. There is no temp file. We throw the uploaded file into the uploads directory and then process those pictures and they are moved into the data folder. Your calling getimagesize in create_thumb against the $filepath variable. Filepath is simply the users uploads directory and filename. You need to actually call getimagesize against an actual true file to get info from this is how it works.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
Issues with Bulk Move deleting files Fortissimo Photopost Pro Bug Reports 3 February 5th, 2010 02:05 PM
Issues Uploading Larger Files theojones Photopost Pro How Do I...? 23 June 5th, 2009 06:07 AM
Upload of very big video files Jens Photopost Pro How Do I...? 2 September 29th, 2006 01:35 AM
Big files on PP 5.11 - Not upload and no error messages ehm Photopost Pro Installation & Upgrades 3 June 18th, 2005 07:58 AM


All times are GMT -5. The time now is 10:48 PM.

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