Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ—ƒοΈ Exporting original images - rather than smaller copies in database #174

Open
rleaver152 opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
✨ enhancement New feature or request

Comments

@rleaver152
Copy link

rleaver152 commented Oct 11, 2022

Hi - Is it possible to export the original images as opposed to the shrunken copies inside the pupyl database?

" It would be great to be able to batch interrogate the database using a Bash script (within the virtual environment) and the CLI to:

eg input (eg -in flag) search image to CLI and copy matches (within a defined match value) to a (-o flag) named folder

Originally posted by @rleaver152 in #122
"

This bash code does it the hard way

reverse_search_images_my_pupyl_search_and_replace_with_originals() {
echo "start this above pupyl source files directory"
thisDirectory="$PWD"
export_baseDirectory="$PUPYL_EXPORT_DIRECTORY"

if [[ -z "$1" ]]; then
   echo "need directory  to search"
   else
        target_Directory="$(basename "$1")"
#       echo "target directory=$target_Directory"
for directoryFile in "$PUPYL_EXPORT_DIRECTORY"/"$target_Directory"/* ; do \
myVal=$(gfind "$directoryFile" -mindepth 1 -maxdepth 1 -type f  -exec echo "{}" \; )
mySearch=$(basename "$myVal" )
gfind "$target_Directory" -type f -name "$mySearch" -exec gcp "{}" "$directoryFile"/. \;
done
fi


}
export -f reverse_search_images_my_pupyl_search_and_replace_with_originals

@policratus policratus self-assigned this Oct 14, 2022
@policratus policratus added the ✨ enhancement New feature or request label Oct 14, 2022
@policratus
Copy link
Owner

Hi @rleaver152,

Good idea! Actually we should had done this before. We'll start working on that, on the next couple of weeks should be part of the mainstream.

@policratus policratus changed the title exporting original images - rather than smaller copies in database πŸ—ƒοΈ exporting original images - rather than smaller copies in database Oct 14, 2022
@policratus policratus changed the title πŸ—ƒοΈ exporting original images - rather than smaller copies in database πŸ—ƒοΈ Exporting original images - rather than smaller copies in database Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants