[Solved] how to delete resized images

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
skrag
Forum Members
Forum Members
Posts: 22
Joined: Fri Apr 20, 2007 1:26 am

[Solved] how to delete resized images

Post by skrag »

Using CMS 1.0.8 in a Windows Server environment under Xampp.

After uploading an image and then deciding it needs to be resized in Image Manager, I have been using the pencil tool under the image to bring up the editor to resize it.  After changing the desired width and height, and checking the box for OK, then saving the image, only the original still shows in image manager therefore there is no way to seemingly delete the resized image should it no longer be needed.

If I go into a Content page and use the Image button to add an image to the page, the resized image is in the list of available images to be used on the page as well as the original image, but there is still no way in the editor of the page to actually DELETE the image from the gallery or Image Manager.

So my question is, can an image that has been resized AFTER being uploaded to Image Manager be DELETED from the site from anywhere within CMS short of having to be a server admin to go into the actual images folder and removing it?  I have also tried this under CMS 1.1 with the same result.  Thanks for any assitance or understanding that anyone can bring to this topic.
Last edited by Anonymous on Fri Aug 17, 2007 4:58 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to delete resized images

Post by Dr.CSS »

Go to Content » File Manager:which is uploads in FTP /images/gal1 these are some folders in uploads, and you can delete whole folders or individual images if you can see them, using the trash can to the right...
User avatar
skrag
Forum Members
Forum Members
Posts: 22
Joined: Fri Apr 20, 2007 1:26 am

Re: how to delete resized images

Post by skrag »

Sorry, I meant to mention that I had tried to do this through File Manager also, but the file simply does not show up anywhere although it is there if in a Content page accessing it through Insert/Edit Image.  I am not sure if this helps, but the files the DO show up in Image Manager, File Manger, etc. have 3 letter extentions where the edited file that is NOT showing up in Image manager has a 4 letter extention like .jpeg instead of .jpg.  I was wondering if there is a config file or something that tells Image Manager what files to show and the edited/resized ones are simply hidden because of file extention.  Not sure that could even be the case but I thought it might be a possibility.  I still do not know how to correct it even if this were the case.

Thanks for the input though.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to delete resized images

Post by Dr.CSS »

I take it you don.t have FTP access?...
User avatar
skrag
Forum Members
Forum Members
Posts: 22
Joined: Fri Apr 20, 2007 1:26 am

Re: how to delete resized images

Post by skrag »

Actually I do, as I am the server admin, but most of my users (which are school teachers) will NOT.  They will work within the confines of the CMS Admin Panel with the rights given them.  I am just trying to make the process as complete for them as possible in case this happens (which I know it will  ;D )

I blew my extension theory out of the water because I resized and saved a .gif image and it does NOT show up in File Manger or Image Manager, but it DOES if inserted via a Content page.  Just no internal way to delete unused or unwanted images.  I guess I will have to do it for those that have this happen and get confused by the lack of having that image readily accessible via Image Manager or File Manager. 

I think that this may just be a bug in either the image editor or in the Image Manager or File Manager.  But I really am not qualified to make that assessment.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to delete resized images

Post by Dr.CSS »

Have you tried changing the File Mask: (unmask) set to 002 or 000 or leave blank?...

Site Admin » Global Settings ...
User avatar
skrag
Forum Members
Forum Members
Posts: 22
Joined: Fri Apr 20, 2007 1:26 am

Re: how to delete resized images

Post by skrag »

I took your suggestion and set the umask to all three settings (002, 000, and blank) and even restarted apache to be sure but still no joy.  I really appreciate all the suggestions.  Keep them coming if you have any more, I am just perplexed by this.  I searched the forums for others who may have experienced this, but nothing quite the same comes up.  I would think that this would be kind of a common task if one were to resize an image they had already uploaded then decided later they wanted it gone but couldn't see it to remove it.  But as you say, maybe most use FTP or other direct file access, unfortunately from a website administration perspective in my case, this is not as desirable.

Thanks for the help and input.
chrisl
Forum Members
Forum Members
Posts: 57
Joined: Fri Dec 30, 2005 10:08 am

Re: how to delete resized images

Post by chrisl »

Image Manager looks at the files in your designated image-upload directory/folder so if the resized image is being saved in the right place it WILL show in your Image Manager(unless it is corrupt).

As the resized image is being picked up, as I understand it,  by your WYSIWYG browser and connector but not by Image Manager it must be a matter of checking your file upload paths—for Image Manager, File Manager and editing browser.

Firstly check via FTP if the resized image is being saved in the correct directory/folder and take it from there.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to delete resized images

Post by Dr.CSS »

I tested this, first I went to image manager and imported an image, mailing.png, used pencil icon to resize and saved it, mailing_1.png, ok now I can't see it hmmm...

Went FTP to site saw it but it has the name mailing_1.png hmmm... renamed it mailing1.png go back to image manager now I see it...

Resize mailing.png again only save it as mailing2.png no _ and lo and behold it shows up in Image Manager and file manager and is deletable in both...

So when you change an image don't let it save with _ in the name and you should be good...

Went thru all the files in image manager and file manager and couldn't find where or why it was hiding them so I did my experiment...
User avatar
skrag
Forum Members
Forum Members
Posts: 22
Joined: Fri Apr 20, 2007 1:26 am

Re: [solved]how to delete resized images

Post by skrag »

AWESOME!  That did it.  No _ on save and the file shows up and can be deleted.  Thank you very much for that bit of troubleshooting.  I doubt I would have ever gotten to that.
Post Reply

Return to “CMSMS Core”