Smart Image Processor ASP 2 Support Product Page

Answered

retrieveing thumbnails in a page

Asked 13 years ago
1
has this question
13 years ago Owen Smart posted:
hi

with this extension, there is no format code to extract the thumbnails onto a web page.

i know how to do this with the php model but not with this version of the asp model...

the support comments posted on this are not good... can you

i tried to work around this by using a prefix instead of a suffix, however the add on pack for asp only uses suffix, there is no prefix option when deleting the images from the server...

Using Dreamweaver 5.5, on Windows 7

please assist?
thanks!!!
Edited by - Owen Smart on 23 Nov 2011  18:58:36

Replies

Replied 13 years ago
13 years ago Teodor Kuduschiev replied:
Hello Owen,

can you please explain what exactly do you need to create, as it is quite unclear from your post?
Replied 13 years ago
13 years ago Owen Smart replied:
QuoteHello Owen,

can you please explain what exactly do you need to create, as it is quite unclear from your post?


sure... what is the asp code to match the thumbnail up with the source image filename in the database?

in PHP its like this....

<?php echo Thumbnail("_small", $row_rspage['Image']); ?>



with the following in the head section

<?php
function Thumbnail($tmb_suffix,$tmb_filename) {
  $tmb_pos = strrpos($tmb_filename, "/");
  if ($tmb_pos == false) {
    $tmb_pos = 0;
  }
  $tmb_name = substr($tmb_filename, $tmb_pos, strrpos($tmb_filename, "."));
  $tmb_extension = substr($tmb_filename, strrpos($tmb_filename, "."));
  return ($tmb_name.$tmb_suffix.$tmb_extension);
}
?>




Edited by - Owen Smart on 25 Nov 2011  22:53:15


Edited by - Owen Smart on 25 Nov 2011  22:54:04
Replied 13 years ago
13 years ago Miroslav Zografski replied:
Hello Owen,

Please, check you e-mail,

Replied 11 years ago
11 years ago Mr. em replied:
can you send me the answer too but in ASP

my naming is done like imagename_small.jpg
Replied 10 years ago
10 years ago Duffy Weiss replied:
I have the same question,

Reply to this topic