Hi,
Im running Drupal 5.2 on www.rockstanza.info, with image-5.x-1.4, img_assist-5.x-1.4 (reckon this should be 5.x-1.4-dev etc)
However my problem is not with img_assist, rather just with image itself.
My images directory keeps getting larger with many duplicate copies appearing in the directory with no referring entry in the files table. Here is one example:
directory listing, suppressed user:group (=apache:apache) for brevity:
ls -algG dscn0044*
-rw-rwxr-- 1 129892 Jan 28 2007 dscn0044._original.jpg -rw-r--r-- 1 71910 Aug 9 13:18 dscn0044._original.medium.jpg -rw-rw-r-- 1 129892 Jul 20 04:23 dscn0044._original.preview_0.jpg -rw-r--r-- 1 71910 Jul 20 04:23 dscn0044._original.preview_0.medium.jpg -rw-rw-r-- 1 129892 Jul 20 05:07 dscn0044._original.preview_1.jpg -rw-r--r-- 1 71910 Jul 20 05:07 dscn0044._original.preview_1.medium.jpg -rw-rw-r-- 1 129892 Jul 20 07:07 dscn0044._original.preview_2.jpg -rw-r--r-- 1 71910 Jul 20 07:07 dscn0044._original.preview_2.medium.jpg -rw-rw-r-- 1 129892 Jul 20 12:37 dscn0044._original.preview_3.jpg -rw-r--r-- 1 71910 Jul 20 12:37 dscn0044._original.preview_3.medium.jpg -rw-rw-r-- 1 129892 Jul 20 15:05 dscn0044._original.preview_4.jpg -rw-r--r-- 1 71910 Jul 20 15:05 dscn0044._original.preview_4.medium.jpg -rw-rw-r-- 1 129892 Jul 19 18:30 dscn0044._original.preview.jpg -rw-r--r-- 1 71910 Jul 19 18:30 dscn0044._original.preview.medium.jpg -rw-r--r-- 1 10165 Aug 9 13:18 dscn0044._original.thumbnail.jpg
The database itself has just three entries: 413 136 _original images/dscn0044._original.jpg image/jpeg 129892 7539 136 thumbnail files/images/dscn0044._original.thumbnail.jpg image/jpeg 10165 7540 136 medium files/images/dscn0044._original.medium.jpg image/jpeg 71910
i.e. no 'preview' size.
My image module settings define: Preview 640x640 Medium 300x300
Anyone any ideas how to clean up the mess of uneeded images???
Ta!
Chris
On Sunday 16 September 2007 18:20, Chris McGinlay wrote:
Hi,
Im running Drupal 5.2 on www.rockstanza.info, with image-5.x-1.4, img_assist-5.x-1.4 (reckon this should be 5.x-1.4-dev etc)
However my problem is not with img_assist, rather just with image itself.
My images directory keeps getting larger with many duplicate copies appearing in the directory with no referring entry in the files table. Here is one example:
directory listing, suppressed user:group (=apache:apache) for brevity:
ls -algG dscn0044*
-rw-rwxr-- 1 129892 Jan 28 2007 dscn0044._original.jpg -rw-r--r-- 1 71910 Aug 9 13:18 dscn0044._original.medium.jpg -rw-rw-r-- 1 129892 Jul 20 04:23 dscn0044._original.preview_0.jpg -rw-r--r-- 1 71910 Jul 20 04:23 dscn0044._original.preview_0.medium.jpg -rw-rw-r-- 1 129892 Jul 20 05:07 dscn0044._original.preview_1.jpg -rw-r--r-- 1 71910 Jul 20 05:07 dscn0044._original.preview_1.medium.jpg -rw-rw-r-- 1 129892 Jul 20 07:07 dscn0044._original.preview_2.jpg -rw-r--r-- 1 71910 Jul 20 07:07 dscn0044._original.preview_2.medium.jpg -rw-rw-r-- 1 129892 Jul 20 12:37 dscn0044._original.preview_3.jpg -rw-r--r-- 1 71910 Jul 20 12:37 dscn0044._original.preview_3.medium.jpg -rw-rw-r-- 1 129892 Jul 20 15:05 dscn0044._original.preview_4.jpg -rw-r--r-- 1 71910 Jul 20 15:05 dscn0044._original.preview_4.medium.jpg -rw-rw-r-- 1 129892 Jul 19 18:30 dscn0044._original.preview.jpg -rw-r--r-- 1 71910 Jul 19 18:30 dscn0044._original.preview.medium.jpg -rw-r--r-- 1 10165 Aug 9 13:18 dscn0044._original.thumbnail.jpg
The database itself has just three entries: 413 136 _original images/dscn0044._original.jpg image/jpeg 129892 7539 136 thumbnail files/images/dscn0044._original.thumbnail.jpg image/jpeg 10165 7540 136 medium files/images/dscn0044._original.medium.jpg image/jpeg 71910
i.e. no 'preview' size.
My image module settings define: Preview 640x640 Medium 300x300
Anyone any ideas how to clean up the mess of uneeded images???
Ta!
Chris
I should add that there are 900+ images on the site, so manual checking is not really an option!
Chris McGinlay / 07.9.16 / 2:20 PM wrote:
Anyone any ideas how to clean up the mess of uneeded images???
Since no one responded, I assume no one has the answer, which I was looking for as well. I am now over 2,000 images. I switched from Image_assist to CCK image_field, hoping to reduce the unwanted duplicates, but to no avail. At first, CCK image_field seemed a better option than image_assist, then I realized upload form won't let me reuse existing image.
On Monday 17 September 2007 21:54, A-NO-NE Music wrote:
Chris McGinlay / 07.9.16 / 2:20 PM wrote:
Anyone any ideas how to clean up the mess of uneeded images???
Since no one responded, I assume no one has the answer, which I was looking for as well. I am now over 2,000 images. I switched from Image_assist to CCK image_field, hoping to reduce the unwanted duplicates, but to no avail. At first, CCK image_field seemed a better option than image_assist, then I realized upload form won't let me reuse existing image.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Boston, MA http://a-no-ne.com http://anonemusic.com
Perhaps a PHP cleanup script will be necessary. For any image held on disk, the script would search the database, removing any 'unreferenced' image files from the disk.
Chris
I have had similar issues with the image module, or maybe with image import, where it si doubling up thumbnails and previews but they aren'tactually there or visible. Is there anything on the Drupal site about this being a known issue?
Jean
On 9/17/07, Chris McGinlay chris@ascentsoftware.org.uk wrote:
On Monday 17 September 2007 21:54, A-NO-NE Music wrote:
Chris McGinlay / 07.9.16 / 2:20 PM wrote:
Anyone any ideas how to clean up the mess of uneeded images???
Since no one responded, I assume no one has the answer, which I was looking for as well. I am now over 2,000 images. I switched from Image_assist to CCK image_field, hoping to reduce the unwanted duplicates, but to no avail. At first, CCK image_field seemed a better option than image_assist, then I realized upload form won't let me reuse existing image.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Boston, MA http://a-no-ne.com http://anonemusic.com
Perhaps a PHP cleanup script will be necessary. For any image held on disk, the script would search the database, removing any 'unreferenced' image files from the disk.
Chris
[ Drupal support list | http://lists.drupal.org/ ]
On Tuesday 18 September 2007 17:21, Jean Gazis wrote:
I have had similar issues with the image module, or maybe with image import, where it si doubling up thumbnails and previews but they aren'tactually there or visible. Is there anything on the Drupal site about this being a known issue?
Jean
There is quite a long thread here, a few things I will try, plus references to issues. Just found it.
Chris