Home | History | Annotate | Download | only in imd

Lines Matching full:srcpath

1004   char srcpath[_POSIX_PATH_MAX] = "";
1030 snprintf (srcpath, sizeof(srcpath), "%s/%s", basepath, image);
1034 if (stat(srcpath, &s))
1037 cgiwrap_writef("File %s not found.", srcpath);
1038 return nerr_raise_errno(NERR_IO, "Unable to stat file %s", srcpath);
1051 ne_warn("srcpath: %s", srcpath);
1052 l = strlen(srcpath);
1053 if ((l>4 && !strcasecmp(srcpath+l-4, ".jpg")) ||
1054 (l>4 && !strcasecmp(srcpath+l-4, ".thm")) ||
1055 (l>5 && !strcasecmp(srcpath+l-5, ".jpeg")))
1057 else if (l>4 && !strcasecmp(srcpath+l-4, ".gif"))
1059 else if (l>4 && !strcasecmp(srcpath+l-4, ".avi"))
1068 err = scale_and_display_image(srcpath,maxW,maxH,cachepath,quality);