4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2018, 04:38:49 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [FIX] Max height has no affect when do image resize
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 [2] Print
Author Topic: [FIX] Max height has no affect when do image resize  (Read 80959 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #15 on: April 01, 2009, 01:53:15 AM »

Hello and welcome to 4images forum.
If you didn't have this problem before installing this fix, then I can only assume you made a mistake installing it. Double check each step again.
Logged

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)
hlalink
Pre-Newbie

Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #16 on: July 28, 2009, 05:49:46 AM »

i have this error

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/XXXXXX/public_html/includes/image_utils.php on line 74

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/XXXXXX/public_html/includes/image_utils.php on line 82

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/XXXXXX/public_html/includes/image_utils.php on line 93

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/XXXXXX/public_html/includes/image_utils.php on line 95


can i get help please
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #17 on: July 28, 2009, 09:28:11 AM »

And these errors you see when...
Logged

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)
waynenort
Newbie
*
Offline Offline

Posts: 21

Thank You
-Given: 0
-Receive: 1


View Profile
« Reply #18 on: August 02, 2009, 10:00:18 AM »

I figure this error that hlalink shally87 mean is happening after the image resize and before the thumbmail creation. What seems to happen is that it goes through the process of resizing the image which it does successfully then errors. The thumbnail then isn't created. The default jpeg thumbnail is shown instead.  The error is on the control panel webpage after the upload and resize is executed. See the screen capture.
Hope this helps V@no

* screen_capture.jpg (90.85 KB - downloaded 13 times.)
Logged
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 168
-Receive: 85

Neverdie


View Profile
« Reply #19 on: March 15, 2010, 10:11:44 AM »

Thanx
Logged
surferboy
Full Member
***
Offline Offline

Posts: 142

Thank You
-Given: 39
-Receive: 2


View Profile
« Reply #20 on: March 16, 2010, 12:11:56 AM »

Just installed this MOD aka Step 8 for the auto upload resize

Using 4images version 1.7.7

Worked perfectly with single image upload.

Here are my settings for max upload dimensions:
width 818
height 1024

Upoaded an image that had dimensions of:
width 1181
height 1575

After auto resize and this MOD, new dimensions in our gallery for this image:
width 767
height 1023

Seems like it is working perfectly.

Thanks,

Brian
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #21 on: March 23, 2010, 06:35:14 AM »

I just discovered a bug in step 1.2 (it's fixed on first page), which might cause creating images 0x0 pixels

In includes/image_utils.php find:
1
function resize_image($file$quality$dimension$resize_type 1$height 0) {

Replace it with:
1
function resize_image($file$quality$dimension$resize_type 1$height false) {
Logged

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)
clubbu
Newbie
*
Offline Offline

Posts: 47

Thank You
-Given: 14
-Receive: 0


View Profile
« Reply #22 on: July 20, 2011, 09:53:49 AM »

Hello, in 1.7.10 is fixing or not?
Logged
Rembrandt
4images Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 899

Vienna


View Profile WWW
« Reply #23 on: July 20, 2011, 11:00:50 AM »

Hello, in 1.7.10 is fixing or not?
sure
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
clubbu
Newbie
*
Offline Offline

Posts: 47

Thank You
-Given: 14
-Receive: 0


View Profile
« Reply #24 on: July 26, 2011, 09:48:57 AM »

But when i use multiupload don't resize...
Logged
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 168
-Receive: 85

Neverdie


View Profile
« Reply #25 on: August 11, 2011, 12:14:07 AM »

Is this included in 1.7.10 !?!?!
Logged
Rembrandt
4images Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 899

Vienna


View Profile WWW
« Reply #26 on: August 11, 2011, 05:26:12 AM »

habe ich oben schon geschrieben, ja ist es.
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 168
-Receive: 85

Neverdie


View Profile
« Reply #27 on: August 11, 2011, 06:40:07 PM »

Überlesen  Rolling Eyes
Danke  Wink
Ich finde das sollte man im Post #1 auch dazu schreiben
Logged
Pages: «« « 1 [2] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.049 seconds with 19 queries.