SMF2.0, no mods, default style.I've changed the hosting from free hosting to theoretically better but paid hosting for my forum. Unfortunately I've achieved problems with adding small but high resolution photos when I have marked "Resize images when showing under posts". There is problem probably with function
resizeImageFile(). SMF cannot create thumbnails. Topic with this kind of photos is blocked and after getting into this topic appears only white board. No log with errors is created.
I've added one test file which I cannot add to my forum, has only 70 KB but resolution is 4000x3000.
On old sewers I can add it with no problems, even that it has worst limits :
See servers' data:
Quote from: Old free hosting php 5.2.17: max_execution_time 10 max_file_uploads 20 max_input_nesting_level 64 max_input_time 10 memory_limit 64M post_max_size 2M upload_max_filesize 2M
| Quote from: New paid hosting php 5.2.17: max_execution_time 60 max_file_uploads 20 max_input_nesting_level 64 max_input_time -1 memory_limit 64M post_max_size 64M upload_max_filesize 64M
|
I've found few similar topics on this forum i.e.:
http://www.simplemachines.org/community/index.php?topic=241173http://www.simplemachines.org/community/index.php?topic=430257But changing the memory limit in code of Subs-Graphics.php gave nothing.
require_once($sourcedir . '/Subs-Package.php');
@ini_set('memory_limit', '256M');
My new host admin don't want to change the memory limit for higher. But if this works on previous server so should work also here.
Have anyone idea what else can cause this errors? Are there any changes which can be made in code to obey this resizing?
I've noted that photos limit which can be added are about 32MB without compression so i.e. 4000x3000x24BPP=34,3 cannot be added but can be added 3850x2888x24=31,82MB (no compression).
Hope to see any help/ideas to solve it.
PS> Sorry for my English ;)
who is your new host?
I'm from Poland, new hosting is polish company, I doubt if name give you anything.
My previous free hosting was 000webhost and it was not good. New hosting is OK except this one issue.
please give me the name as requested, i asked for it for a reason.
OK! As you wish:
www.jupe.pl
they look like a decent host not oversold. as this feature works for other users, i would have to say it has something to do with their server configuration and not really a bug. also not all hosts allow you to change the php memory limit.
but I wonder if both hosts have the same memory_limit=64M, so IMO this cannot be the reason.
My question was what else can cause it? Other php.ini settings?
Forum was direct copy from old hosting so I doubt if there could be problem with forum itself.
I also installed new clear forum 2.0 without any addons and there is the same situation.
Any other ideas?
most likely issues with how php is configured, which would be out of your control. if your host will not help you fix the issue maybe time to go find a host that would be willing to work with you.
OK, I have sth new. Probably it is problem with SMF2.0 code - resize function.
I've noticed that in AevaMedia mod I have possibility to choose Image handler: GD2, IMagick or MagickWand (www.imagemagick.org).
See attached screenshot.
On previous server there wasn't such a possibility. Default is GD2. If I mark IMagick or MagickWand I can add to my gallery high res. photos. But still I cannot add it as attachment to posts.
What should be changed to make SMF to use other handler than GD2 as standard?Quote from: Old server:GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Quote from: New server
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.4.4
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
imagick module enabled
imagick module version 3.0.1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.6.9-5 2011-04-21 Q16 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick release date 2011-04-21
ImageMagick number of supported formats: 184
ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BMP, BMP2, BMP3, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, JNG, JPEG, JPG, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
MagickWand Backend Library ImageMagick
MagickWand Extension Version 1.0.8
ImageMagick support enabled
ImageMagick version ImageMagick 6.6.9-5 2011-04-21 Q16 http://www.imagemagick.org
ImageMagick QuantumRange (MaxRGB) 65535
MagickWand supported image formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BMP, BMP2, BMP3, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, JNG, JPEG, JPG, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
You can't change the image library in SMF without a huge undertaking in coding.
One suggestion I would check is to see if your host is allowing ini_set to actually modify the memory when SMF attempts to re-size the image. If they have ini_set() in the disabled_functions sections on their php.ini file it could be the problem.
I've sent you PM with my php info. Please take a look at it and see where can be the problem.
If sth else I can ask my server's admin.
Thanks in adv for help.
any updates on this? is it still an issue?
Related: http://www.simplemachines.org/community/index.php?topic=470495.0
I appreciate this is an old topic but we have several members of our forum uploading large resolution images 3000+px x 3000+px and even though the file size is small 500KiB it blocks the topic.
Has anyone found a way to overcome this problem? I read the related topic too btw.