Author Topic: Validating Images in control panel - Resize Screen Image  (Read 17482 times)

0 Members and 1 Guest are viewing this topic.

Offline bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« on: May 27, 2003, 04:04:54 PM »
8O   v@no -

i need to adjust the display size of the image when validating images in the control panel routine

can you point me to the files/coding used so i can adjust the image display size

many thanx
bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #1 on: May 27, 2003, 05:57:10 PM »
hmmm...not sure what do u mean, but for validation uses:
/admin/validateimages.php
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #2 on: May 27, 2003, 06:27:04 PM »
v@no -

when the images are first uploaded and being screened in the check new images/validate images routine - the image is displayed on the screen.

somewhere in the routine - the size is set for display on the screen - i need to adjust the max height/width to make it smaller -

i can't find the coding ...

 :roll:

bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #3 on: May 27, 2003, 06:30:03 PM »
in /admin/validateimages.php look for:
height=\"50\"
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #4 on: May 27, 2003, 06:57:05 PM »
v@no -

**editied**

heres a screen shot with a reduced image to show the problem -
does anyone know which php file  contains the routine and what coding i need to adjust so that displayed image so that it will fit on the screen?? ( i use large images !!)



btw -
the height=\"50\" didn't work

any thoughts anyone

thanx
bruce

Offline bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #5 on: May 28, 2003, 12:39:54 PM »
help !!!!  :D

can anyone take a stab at this

thanx
bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #6 on: May 29, 2003, 12:20:32 AM »
the screen show u showed, has nothing to do with validation...right?
thats when u edit your images. also, did u set static sizes? this media icon seems to be tiled...:lol: that's normal behave of HTML, when u set static image size, it will resize either way big or small.
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #7 on: May 29, 2003, 07:42:36 AM »
v@no -

you are correct! - however, when running the check new images (detailed version) or edit images - one gets to the screen shot above ...

i have attempted to locate the code by reviewing the source code but can not find where it sets the sizing for the edit image routine - this is similar to the problem when one views the image on the detail page ! .. but i was able to fix that coding -

so - which routines/files make the call to size the image in edit image??

it would be so nice to be able to see the whole image on the screen !! and not have to scroll around !!

thanx
bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #8 on: May 29, 2003, 09:21:16 PM »
ok, here is a fix for "Edit images".
it will not phisicaly resize image file, but will display proporcianaly resized image to the max size u want. Cause of that filesize will stay the same.

Open /admin/images.php
Find:
Code: [Select]
 show_image_row($lang['image']."<br /><span class=\"smalltext\">(".$image_row['image_media_file'].")</span>", $file_src, 1);
Replace with:
Code: [Select]
 $img_info = @getimagesize($file_src);
  $height = 600;
  $width = 600;
  $dimension = $width;
  if ($img_info[0] > 0 && $img_info[1] > 0 && ($img_info[0] > $width || $img_info[1] > $height)) {
  $ratio = $img_info[0] / $img_info[1];
 if ($ratio > 1) {
   $width = $dimension;
   $height = floor(($dimension / $img_info[0]) * $img_info[1]);
 }
 else {
   $width = floor(($dimension / $img_info[1]) * $img_info[0]);
   $height = $dimension;
 }
}
  show_image_row($lang['image']."<br /><span class=\"smalltext\">(".$image_row['image_media_file'].")<br />".$img_info[0]."x".$img_info[1]."</span>", $file_src, 1, "", $height, $width);


change
Quote
 $height = 600;
  $width = 600;
to what max image sizes u want.
Also, it will show u actual image dimentions under filename.
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #9 on: May 29, 2003, 10:23:48 PM »
V@no -

rock and roll !!

thanx  :)

much easier to see the screen now -

ciao
bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #10 on: May 29, 2003, 10:52:07 PM »
yes, was thinking look for that long time ago....thx for pushing....lol
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #11 on: May 30, 2003, 11:50:23 AM »
v@no -

i found a small (large display) problem with the coding -
it works great when you go to edit one image at a time, but -

i batched up 55 images - went to check them using the checkimages (detailed selected)  and i got the large static screen version again -

i guess there is another location in the routine where i need to apply your replacement coding ...

do you know where that is??

mucho thanx so far -
bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #12 on: May 30, 2003, 11:56:46 AM »
yes, that's why I mentioned:
Quote from: V@no
ok, here is a fix for "Edit images".
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Validating Images in control panel - Resize Screen Image
« Reply #13 on: May 30, 2003, 12:07:18 PM »
did that v@no

and its fine for 1/1 editing under images>edit images..

but when i do

images>check new images (detailed version) (xx images displayed)

i still get the large display screen :roll: .. so there must be some coding somewhere that causes this to happen ...

what have i missed  :?

bruce

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
Validating Images in control panel - Resize Screen Image
« Reply #14 on: May 30, 2003, 12:09:55 PM »
u'll need do some changes in checkimages.php file as well ;)
see, each link on left side of ACP is separate module (.php file).
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)