Is there a way to prevent the same photo to be uploaded?

442 views
Skip to first unread message

begeiste

unread,
Sep 10, 2012, 6:19:12 PM9/10/12
to resour...@googlegroups.com
Hi,

Is there a way in config_default.php file can prevent the same photo to be uploaded? In the another hand, I uploaded a photo "12345_952", my co-worker mistakenly uploaded this photo again. They are all appeared while searching them. Is there a function to block or pop a message says "this photo 12345_952 is already in the gallery, do you want to replace them?"

Thanks,
Beckmann

njenney

unread,
Sep 10, 2012, 9:16:12 PM9/10/12
to resour...@googlegroups.com
Do not make changes to config.default.php but rather config.php.

See this thread on duplicates.

https://groups.google.com/forum/m/?fromgroups#!topic/resourcespace/2wZd-SFXD4Y

begeiste

unread,
Sep 11, 2012, 7:14:20 PM9/11/12
to resour...@googlegroups.com
Tried several times. It is still not working. The duplicates constantly generated. This is my setting at config.php

$use_temp_tables = true;
$file_checksums=true;
$file_checksums_offline = true;
$file_checksums_fullfile=true;

Thanks,
Beckmann

njenney

unread,
Sep 12, 2012, 1:01:49 PM9/12/12
to resour...@googlegroups.com
Check here.

Team Center > Manage Resources > View Duplicate Resources

Allison Stec

unread,
Sep 12, 2012, 1:05:20 PM9/12/12
to resour...@googlegroups.com
It should be noted that AFAIK this doesn't prevent duplicates, but instead locates them.

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/BUn7QdaJiJcJ.

To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.

David Dwiggins

unread,
Sep 12, 2012, 1:09:34 PM9/12/12
to resour...@googlegroups.com
Yes, this is true. Also, if you have  file_checksums_offline = true, you will need to have a script running periodically to generate the checksums, otherwise duplicate searching will not work. 

If your resources aren't too large, you could probably use  file_checksums_offline = false, which would have the system generate checksums on upload. The drawback of this is that big files can take a long time to checksum, so this can substantially slow down your upload process for some types of resources.

Right now there is no way to detect dupes on upload. This is a bit complicated to implement due to the way the upload process works and the need to generate a full checksum to detect the duplicate. (If you only needed to match the filename, it might be easier to implement, but would still require new programming.)

There is also no easy way to detect photos that are similar but not identical (such as differently-cropped versions of the same photo, or a jpeg and a tiff version of the same photo.) This is something that is easy for humans and a lot harder for computers.

-David

Tom Gleason

unread,
Sep 12, 2012, 1:21:41 PM9/12/12
to resour...@googlegroups.com
Hi David, 
If you're interested in that problem (and not to get off-topic, since this isn't supported by RS currently), you might want to look at libpuzzle.

I've experimented with libpuzzle in the past (http://www.pureftpd.org/project/libpuzzle), and it seems a pretty good way to detect very similar images using computer vision regardless of filename or actual binary content.

The method would be to base comparisons on scr or pre images. It is able to match, for example, the same source image at different resolutions, the same image with minor shifts in light/darkness, the same image with small changes, different types of files such as jpg/tiff/pdf of the same source. It would fail to recognize recropped images.

Tom
--
Tom Gleason
ResourceSpace Hosting & Development

Vice President, Engineering
Colorhythm LLC
http://www.colorhythm.com

Main Office:  +1 415-399-9921
Fax: +1 253-399-9928
Mobile:  +1 347-537-8465

tgle...@colorhythm.com

Beckmann

unread,
Sep 12, 2012, 1:35:44 PM9/12/12
to resour...@googlegroups.com
I went to Team Center > Manage Resources > didn't find View Duplicate Resources. Which actual php file can add the "View Duplicate Resources"?

Thanks,
Beckmann

2012/9/12 njenney <nje...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.

njenney

unread,
Sep 12, 2012, 2:12:21 PM9/12/12
to resour...@googlegroups.com
team_resource.php.

Allison Stec

unread,
Sep 12, 2012, 2:15:09 PM9/12/12
to resour...@googlegroups.com
it looks like it works off the "c" permission

To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/J4MTcO4d53YJ.

njenney

unread,
Sep 12, 2012, 2:20:37 PM9/12/12
to resour...@googlegroups.com
Nice call Allison.

Allison Stec

unread,
Sep 12, 2012, 2:24:22 PM9/12/12
to resour...@googlegroups.com
you told me where to look ;-)

that permission setting doesn't seem intuitive to me, especially considering i use staticsync. I would have thought it would be linked to deleting...

To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/CYQfkA2tqmsJ.

Jeff Harmon

unread,
Sep 10, 2012, 6:58:58 PM9/10/12
to resour...@googlegroups.com, resour...@googlegroups.com
I'm sorry - there's no such function at this time; however, there are some ways to discover duplicates after the fact. 

Jeff

--
Jeff Harmon
Chief Executive Officer
--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/9Vz3kc98elMJ.

Beckmann

unread,
Sep 13, 2012, 1:04:44 PM9/13/12
to resour...@googlegroups.com
Where can I find this team_resource.php?Is this in pages folder, don't find it either.

Thanks,
Charlton

2012/9/12 njenney <nje...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/J4MTcO4d53YJ.

Allison Stec

unread,
Sep 13, 2012, 1:56:16 PM9/13/12
to resour...@googlegroups.com
within the pages folder ->team->team_resource.php
Reply all
Reply to author
Forward
0 new messages