Posted by melquisedec2011 on May 30, 2011 at 9:58am
I have a content type with a cck field where i upload a image file. each time when i upload an image one image file is created in my directory and image cache directory and thumbnails directory.
I try to make a module to create content from this content type but i do not upload the image I just copy to direcory (ftp). now everything is fine but i can not do make that the image in thumbnails diretory and imagecache direcory be created.
somebody can help me

Comments
Look in the imagecache module
A function I use to prevent/help this problem is imagecache_create_path(). It has been a while since I read the actual funcion, but look there first. When I call it in several of my own modules, it looks to see ifthe file exists for the preset called and if there isn't one, one is created. Hope that helps.
Steve
Filefield Sources
Filefield Sources module will allow you to select existing files on the server that were uploaded via FTP, and reference them in an imagefield after the fact. Not sure if that's what you need, but it sounds close.