Page 1 of 2

[OpenEMM 2015] Are unused graphics automatically deleted?

Posted: Wed Mar 11, 2015 10:41 am
by friedbrain
With OpenEMM 2015 it seems that unused graphics are automatically deleted.

Is that so? Is that a bug or a feature?

Edit: Happens on both our test and prod system.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Wed Mar 11, 2015 6:55 pm
by maschoff
We need a more detailed description of what you mean by "unused graphics" to be able to assess this issue.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 13, 2015 2:47 pm
by friedbrain
Graphics that are not used in AGN tags.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 13, 2015 2:59 pm
by maschoff
Can not confirm. What I did:
1. Upload an image in tab "Picture components" of a mailing.
2. Log out
3. Log in
4. Picture is still there.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 13, 2015 3:07 pm
by friedbrain
OK, tested again, the needed steps are:

1. Upload an image in tab "Picture components" of a mailing or template.
2. Save either the template in the tab "Mailing" or a text module in the tab "Content". No changes need to be made here.
3. Go back to the tab "Picture components".

Result: The uploaded image is gone.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 13, 2015 3:24 pm
by maschoff
Confirmed, if there is no link from content to the image, it is not saved with the mailing. This is probably not intended, but I have to check. Thanks for your feedback!

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 13, 2015 3:36 pm
by friedbrain
Thanks for the quick update. 8)

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Thu Mar 19, 2015 9:37 pm
by nadasadij
I have related problem: The uploaded image disappears after instering into the mail.

Steps to reproduce:
1. upload an image in picture components. It appears in picture components tab, and the name is exactly the uploaded file name.
2. insert the image into content with html editor's insert image form, and here "browse server". The image is here, i can insert it. This function inserts the img with this form: img src="http://server-name:8080/image?ci=...", and not with the agnIMAGE tag.
3. On the picture component tab the image name changed from original filename to http://server-name:8080/image?ci=...
4. Some time later (a few minutes?) the image can't available any more on http://server-name:8080/image?ci=... url

Is there any problem with the insert image / browse server funciton? Does it should insert with agnIMAGE tag?

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 20, 2015 10:26 am
by in_need_of_help
I have the same Problem, didn't see this thread before so I opened a new one: https://forum.openemm.org/post9373.html I will move over here for discussion.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 20, 2015 11:04 am
by friedbrain
nadasadij wrote:Does it should insert with agnIMAGE tag?
Yes, if you use the agnIMAGE tag the images are not being deleted.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Fri Mar 20, 2015 2:48 pm
by nadasadij
friedbrain wrote:
nadasadij wrote:Does it should insert with agnIMAGE tag?
Yes, if you use the agnIMAGE tag the images are not being deleted.
OK, I can use this way manually.
But what about the html editor insert image / browse server function. This function is more comfortable than manual write img tag.
I expected this function sould insert the uploaded image with agnIMAGE tag, but it doesn't, so this comfortable function is unusable now. :(

Can anyone use this function without losing uploaded images?

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Tue Apr 07, 2015 10:15 am
by highco
Hi...im new to openemm. Everything works fine so far except that problem with insertion of images via the editor. It happens exactly like nadasadij explained.

I also noticed that if i upload an image and then just save an content-element (doesnt matter which one), then the image will be deleted by that action. Or is it a feature that the non-referenced images are deleted by saving a content-element?

For my situation and what i need/want to do its very hard to implement the picture components via the agnImage-Tags....hard to manage especially for the editor-user...

Is there a bug fix or could someone find a workaround (for the editor...)? Would really need a fix for that....for i need that feature to work.. :(

If you need more details about the bug just ask me... :)

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Tue Apr 07, 2015 10:27 am
by friedbrain
No, it's a bug.

Everything else is like I described it above.

Workaround is inserting the image directly after uploading it.

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Thu Apr 09, 2015 9:43 am
by highco
thanx for the answer..

but that workaround doesnt work (at least for me).. :(

Its just like nadasadij described...if i insert the image directly after i uploaded it, the image is renamed from <filename> to <http://server:8080/image?ci....>.
Then it seems like it works.....but a bit later (one or two minutes) the image cant be found anymore.

Seems to me as if the original uploaded image is deleted by saving the content-element anyway.....and if it was inserted with the editor, the image is changed to an "external" url-resource (which maybe is cached by openemm....for it still works...for maybe a minute).

Implementing images via the agnIMAGE-Tag works fine. But that is not practicable for what i need to realize with openemm...

Is somebody already working on a solution/fix for this problem? Or is that kind of low-priority-feature? Does somebody know a status? :)

Re: [OpenEMM 2015] Are unused graphics automatically deleted

Posted: Thu Apr 09, 2015 10:00 am
by friedbrain
filename? You have to use the agnIMAGE tag as stated above.