Smart Image Processor ASP 2 Support Product Page

Answered

Ripping additional images? [Smart Image Processor ASP]

Asked 19 Jun 2011 08:25:58
1
has this question
19 Jun 2011 08:25:58 Justin Moss posted:
Hi,

I am currently are using Smart Image Processor ASP v1, which is working just fine ripping a large and thumb image from a single upload. However, we now need to rip a third image from the single upload - let's call it "Mega", so that's three images:
  • Thumb 40px
  • Large 500px
  • Mega 1200px new
I am aware that Smart Image Processor v2 can probably handle the task, however I don't want our customer to deal with the additional interface and decisions, we just want to seamless rip three images from one provided.

So, what changes would be need to make (and where) to incResizeAddon.asp?

I am aware that a couple of extra inputs will be needed from the page (say RUF_megaWidth, RUF_megaHeight and perhaps RUF_isMega), and that's all fine, however I would like to hear your thoughts on what type of change is required and where to make it. Assuming DOTNET resizing, I anticipate these subs need mods:
  • Sub FitImage_DotNet
  • Sub calculateNewImageSize
  • Sub ResizeUploadedFiles
I realise also that the subroutine for the "Mega" image would have to be handled as a kind of thumb, in that the files ripped would have to be named like this:
  • Image_thumb.jpg
  • Image.jpg
  • Image_Mega.jpg new
(thus leaving the default Large image intact).

A couple of options I am considering:

1) resubmit the form again after completion of the first upload to rerip to the Mega size (obviously this would require appropriate flags in the code to detect the second submission), however, that's a lazy method

2) store the original image - I see that there is a flag in the current code to RUF_RemoveOrig. This suggests that there is a way to store the original image. Whilst that is a possibility, it has two main problems a) the originals may be far too large (causing file storage woes), and b) the smart image renaming for conflicting filenames will not be handled.

3) ideally, I would like to modify incResizeAddon.asp to resize a third image (Mega) as part of the existing script. It would need to handle it like a thumb, so that it was renamed with a "_mega" suffix (but obviously sized as a Mega image). That way the image could be referred to in page code using the existing technique for thumbs.

It seems to me that the fundamental approach it quite simple, however, I'd just like some pointers from someone familiar with the code in incResizeAddon.asp, perhaps one of the authors in the DMX crew [8D]

All comments appreciated.

Many thanks,
Justin
Edited by - Justin Moss on 19 Jun 2011  08:26:40

Replies

Replied 20 Jun 2011 08:27:25
20 Jun 2011 08:27:25 Miroslav Zografski replied:
Hello Justin,

The V1 of Smart Image Processor is Deprecated. It is unlikely that you would get an answer on your query. Especially for alterations on the source code. We do not support such option.

I'm sorry.

If you upgrade to V.2 of the product you will be able to create as much as you like versions of one uploaded image. Like in this scenario:
www.dmxzone.com/go?12610&LinkFile=creating_thumbnails.htm

Regards,

Reply to this topic