• [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006) 5 0 5 1
Currently:  

Author Topic: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)  (Read 325198 times)

0 Members and 1 Guest are viewing this topic.

Offline diehard

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #285 on: September 13, 2010, 07:37:17 AM »
Hi!

you can test how much memory will need your pictures.

copy the attached file and a image called  testimg.jpg in your root and call it to "gdtest.php".
now you can see how many memory your image will need.

mfg Andi


This is result:
convert start = 65.133 kb
convert end = 22.106 mb


I found a problem. The Apache mod_qos stoped my upload request :) When i stoped it, all is OK.
Thanks V@no / Rembrandt for help...

This is config for this Apache mod:

Code: [Select]
## QoS Settings
<IfModule mod_qos.c>
    # handles connections from up to 100000 different IPs
    QS_ClientEntries 100000
    # will allow only 50 connections per IP
    QS_SrvMaxConnPerIP 50
    # maximum number of active TCP connections is limited to 256
    MaxClients              256
    # disables keep-alive when 70% of the TCP connections are occupied:
    QS_SrvMaxConnClose      180
    # minimum request/response speed (deny slow clients blocking the server, ie. slowloris keeping connections open without requesting anything):
    QS_SrvMinDataRate       150 1200
    # and limit request header and body (carefull, that limits uploads and post requests too):
    # LimitRequestFields      30
    # QS_LimitRequestBody     102400
</IfModule>

And i add local IP`s
     
Code: [Select]
QS_SrvMaxConnExcludeIP                    127.0.0.1
     QS_SrvMaxConnExcludeIP                    192.168.0.
Now everything work fine and flooders stoped and upload images is OK ;)
« Last Edit: September 13, 2010, 09:49:23 AM by diehard »

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #286 on: September 17, 2010, 06:03:37 AM »
first of all thanks for such a nice MOD..
well i've tried both v2.11 and v2.12.2 but have no sucess with both as i can't add 80+ images in one go.. when i select 90 or 100 it turns out to

--------------------------------
Check new images log
No new images added!
--------------------------------

i've to add 20k plus images so adding 80 in one go will take alot of time.. i want to add atleat 200 in one go..

after reading the thread i figured out that might be my "post_max_size" will be less but i also increased that to 30MB from 8MB.. and still it didn't work out.. :(

can u please tell me where is the problem, my server or script.. i'm using latest version of 4images i.e. v1.7.8

Thanks.
« Last Edit: September 20, 2010, 06:27:06 AM by khansahib »

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #287 on: September 20, 2010, 06:28:03 AM »
hello anybody there to tell where is the problem...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #288 on: September 20, 2010, 02:07:12 PM »
There are other restrictions that could cause this, some other modules, etc. for instance mod_security could limit number of POST entries, it's hard to tell. If you wish, PM me with a link to your phpinfo()
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #289 on: September 20, 2010, 08:23:36 PM »
As I was saying, you have a server restrictions, in  your case it's suhosin extension.

For starters play with the following settings in php.ini (or whatever setting file for that extension is)
Code: [Select]
suhosin.*.max_varsand:
Code: [Select]
suhosin.post.max_array_depth
suhosin.post.max_array_index_length
suhosin.post.max_name_length
suhosin.post.max_totalname_length
suhosin.post.max_value_length
suhosin.post.max_vars

I've seen such restrictions before, when people were not able add more then NN number of images at once, your case looks the same.
Just to summarize, 4images sends out 21 POST vars, plus additional 11 vars for EACH image, so if you add one image, it uses 32 POST vars, 2 images = 43 vars

It also could be some other settings, but I'm quiet sure it's the suhosin extension that giving you the problem.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #290 on: September 21, 2010, 07:20:25 AM »
Thanks

well i used the following code

Code: [Select]
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048

and saved it as php.ini and added to admin folder.. and all worked out... :)
« Last Edit: September 21, 2010, 08:08:20 AM by khansahib »

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #291 on: October 08, 2010, 10:12:51 PM »
hi
i'm using v 1.7.8

when i check for new images it take some times and i think becouse of the Thumbnail so
can i remove it

Offline henary

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #292 on: December 02, 2010, 10:30:11 AM »
Hello,

i've add some functions like exif and iptc db field, histogramm-maker and rename for image-name, exif-date instead time() for image_date into the checkimages.php.

But some isn't work  :cry:

I've i use input-row like show_radio_row in second part of the checkimages.php, everything is workin well, but i'd like my functions in first part and there they don't do!

Look 4img_1.gif this ist my wishing position, 4img_2 is working.

I've used v@nos help from this http://www.4homepages.de/forum/index.php?topic=4754.msg147981#msg147981 to find out any and teh result from 4img_1 is like:
Code: [Select]
Array
(
    [__csrf] => ff4e5f1eb76629a25d97ddc57be0dfdd
    [action] => savenewimages
    [auto_resize] => 1
    [dimension] => 1024
    [resize_type] => 1
    [quality] => 85
    [big] => 1
    [big_folder] => download
    [annotate] => 0
    [auto_thumbs] => 1
    [dimension_thumbs] => 150
    [resize_type_thumbs] => 1
    [quality_thumbs] => 85
    [user_id] => 1
    [cat_id_p] => 2
    [mode] => 1
    [allbox] => on
    [addimage_1] => 1
    [image_media_file_1] => 200812-23_22-23-33.jpg
    [image_thumb_file_1] => 200812-23_22-23-33.jpg
    [image_name_1] => 200812-23 22-23-33
    [cat_id_1] => 2
    [old_cat_id_1] => 2
    [image_description_1] =>
    [image_keywords_1] => Louise
    [image_date_1] => 2010-12-02 10:13:31
    [image_active_1] => 1
    [image_allow_comments_1] => 1
    [max_dimension] => 300
    [num_newimages] => 20
    [detailed] => 0
    [subcats] => 0
)

The vars
Code: [Select]
[date_exif] => 1 and    [date_asname] => 1are missing in array  8O

I need some help to resolve this, i will post detailed code if you need.

Thanks,
Henry

(Deutsch wäre mir einfacher  :wink:)

Offline wallward

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Check new images in ALL categories v2.11 (updated 22-04-2006)
« Reply #293 on: February 07, 2014, 04:54:55 PM »
Tnx, :)
How to ORDER result by size or random?