Author Topic: [FIX] Max height has no affect when do image resize  (Read 100754 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [FIX] Max height has no affect when do image resize
« 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.
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 hlalink

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [FIX] Max height has no affect when do image resize
« Reply #17 on: July 28, 2009, 09:28:11 AM »
And these errors you see when...
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 waynenort

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« 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

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« Reply #19 on: March 15, 2010, 10:11:44 AM »
Thanx

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [FIX] Max height has no affect when do image resize
« 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:
function resize_image($file$quality$dimension$resize_type 1$height 0) {

Replace it with:
function resize_image($file$quality$dimension$resize_type 1$height false) {
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 clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« Reply #22 on: July 20, 2011, 09:53:49 AM »
Hello, in 1.7.10 is fixing or not?

Rembrandt

  • Guest
Re: [FIX] Max height has no affect when do image resize
« Reply #23 on: July 20, 2011, 11:00:50 AM »
Hello, in 1.7.10 is fixing or not?
sure

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« Reply #24 on: July 26, 2011, 09:48:57 AM »
But when i use multiupload don't resize...

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« Reply #25 on: August 11, 2011, 12:14:07 AM »
Is this included in 1.7.10 !?!?!

Rembrandt

  • Guest
Re: [FIX] Max height has no affect when do image resize
« Reply #26 on: August 11, 2011, 05:26:12 AM »
habe ich oben schon geschrieben, ja ist es.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: [FIX] Max height has no affect when do image resize
« Reply #27 on: August 11, 2011, 06:40:07 PM »
Überlesen  :roll:
Danke  :wink:
Ich finde das sollte man im Post #1 auch dazu schreiben