Author Topic: Image size ???  (Read 6697 times)

0 Members and 1 Guest are viewing this topic.

Offline Lesik

  • Newbie
  • *
  • Posts: 38
    • View Profile
Image size ???
« on: April 23, 2007, 08:26:42 AM »
Hi.

Help please.
What show size of the file in resize.php in line $imgs .= "<td>".$image_info[0]."x".$image_info[1]." - SIZE IMAGE"</td>";

That to see following, example: 1200х900 - 300Kb

Excuse me for bad knowledge of english.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Image size ???
« Reply #1 on: April 24, 2007, 09:34:51 AM »
... try this ... in resizer.php ...
Code: [Select]
$file_size = @filesize($path."/".$image_row['cat_id']."/".$image_row[$sql_image_type]);
$imgs .= "<td>".$image_info[0]."x".$image_info[1]." - ".$file_size."</td>";
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lesik

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Image size ???
« Reply #2 on: April 24, 2007, 09:49:33 AM »
... try this ... in resizer.php ...
Code: [Select]
$file_size = @filesize($path."/".$image_row['cat_id']."/".$image_row[$sql_image_type]);
$imgs .= "<td>".$image_info[0]."x".$image_info[1]." - ".$file_size."</td>";

many thanks,
wanted to add these line in file validateimages.php but nothing be not got, is got this not unified way?

yes, if to whom will be necessary to bring about normal type:
$file_size = @filesize($path."/".$image_row['cat_id']."/".$image_row[$sql_image_type]);
$file_size = round($file_size / 1024, 2);
$imgs .= "<td>".$image_info[0]."x".$image_info[1]." - ".$file_size."</td>";
« Last Edit: April 24, 2007, 03:05:23 PM by Lesik »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Image size ???
« Reply #3 on: May 02, 2007, 06:47:40 PM »
[$file_size = round($file_size / 1024, 2);

... right ... to show the filesize in kb ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lesik

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Image size ???
« Reply #4 on: May 06, 2007, 09:01:53 AM »
ENG:
Mawenzi, what do same in validateimages.php? come to photographies as before their issue in galley to see their size?
and there is what nor be information on that that users could adjust the amount a photography on the main (index.php) to page?

RUS:
Mawenzi, как сделать просмотр размера файла в validateimages.php? т.е. при просмотре фотографий перед выпуском в галерею видеть их размер и вес?
и есть ли какая нибудь информация о том как, пользователи самостоятельно могли бы регулировать количество фотографий на главной странице?

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Image size ???
« Reply #5 on: May 07, 2007, 10:28:12 AM »
... mmm ... I do not understand you correctly ... neither your English nor your Russian questions ... sorry ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lesik

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Image size ???
« Reply #6 on: May 08, 2007, 08:25:55 AM »
... mmm ... I do not understand you correctly ... neither your English nor your Russian questions ... sorry ...

Hi Mawenzi.
How in file validateimages.php to do viewing the size and widht and heigth to photographies, before publication in gallery?
There is information about how to, users by itself could choose the amount a photography on the main to page?

see on drawing


« Last Edit: May 08, 2007, 09:09:07 AM by Lesik »