Coder Social home page Coder Social logo

zoph's Introduction

zoph's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zoph's Issues

Geonames project has changed URL

The Geonames project, which is used for a few geolocation services in Zoph has changed it's URL and now requires authentication.

CLI non-functional

When directing zoph to use an album, it says "Person not found: $album_name"
If no album specified, then just "Person not found:"
$ zoph --album "Armidale" --photographer "Liz xxxx" --location "northern tablelands" *.JPG
PHP Notice: Constant INI_FILE already defined in /var/www/zoph/config.inc.php on line 33
Person not found: Armidale

$ zoph --photographer "Liz xxxx" --location "northern tablelands" *.JPG
PHP Notice: Constant INI_FILE already defined in /var/www/zoph/config.inc.php on line 33
PHP Notice: Undefined variable: name in /var/www/zoph/cli/arguments.inc.php on line 432
PHP Notice: Undefined variable: name in /var/www/zoph/cli/arguments.inc.php on line 437
Person not found:

Order prints

It should be possible to order prints from Zoph.

Configuration from webinterface

Currently Zoph's configuration is changed by editing a php file, this is not userfriendly enough for non-technical users. It should be possible to edit the configuration from the webinteface.

TYPE=MyISAM is deprecated

zoph.sql uses "TYPE=MyISAM" which is deprecated in favour of "ENGINE=MyISAM", this makes Zoph incompatible with MySQL > 5.4.4.

Reported by Miyo

Photo stacks

This is Sourceforge Req#1628186 by Dustin Ratliffe.

The basic idea is, that you "stack" several photos of the same subject on top of eachother, showing only the best in overviews.

Favicon support

@ToniN created a patch to add favicon support:

diff -Naur php/config.inc.php new/config.inc.php
--- php/config.inc.php  2008-06-03 12:49:04.000000000 +0200
+++ new/config.inc.php  2008-06-07 14:44:25.103575495 +0200
@@ -28,6 +28,9 @@
     define('CSS_SHEET', 'css.php');
     define('ICONSET', 'default');

+    // Favorite's icon
+    define('FAVICON', 'photos.ico');
+
     define('USE_IMAGE_SERVICE', 1);
     define('IMAGE_DIR', "/data/images/");
     // Only needed when imaga service is off:
diff -Naur php/header.inc.php new/header.inc.php
--- php/header.inc.php  2008-05-26 15:17:48.000000000 +0200
+++ new/header.inc.php  2008-06-07 14:42:11.365613078 +0200
@@ -21,6 +21,11 @@
 ?>
 <link type="text/css" rel="stylesheet" href="<?php echo CSS_SHEET ?>">
 <?php
+    if(FAVICON) {
+?>
+<link rel="shortcut icon" type="image/x-icon" href="<?php echo FAVICON ?>">
+<?php
+    }
     if(JAVASCRIPT) {
 ?>
 <script type="text/javascript" src="js/util.js"></script>

Change documentation to markdown syntax

Github can display textfiles such as README in a nicely formatted way, while the raw file is still readable with a textviewer or editor. Zoph's documentation should be updated to use Markdown syntax.

Missing French translation

Could not copy %s to %s.= Impossible de copier %s vers %s.
I have enabled access to the following albums for you:= Je vous ai donné accès aux albums suivants

Reported by @ToniN

Web import hiccup

Web import now fails with a missing database field

Message: Created directory: /data/images/2012/07/08/
Message: Created directory: /data/images/2012/07/08/mid/
Message: Created directory: /data/images/2012/07/08/thumb/

Insert failed:
Unknown column 'rating' in 'field list'

INSERT INTO zoph_photos(date, time, camera_make, camera_model, flash_used, focal_length, exposure, aperture, metering_mode, iso_equiv, compression, location_id, rating, photographer_id, description, path, name) VALUES ('2012-07-08', '18:54:21', 'Panasonic', 'Dmc-ls80', 'No', '5.5mm', '0.025 s (1/40) [program (auto)]', 'f/2.8', 'matrix', '1250', 'jpeg quality: fine', '263', '0', '3', 'Pogoplug', '2012/07/08', 'P1090853.JPG')

Add New Place map doesn't allow mouse choice

The map on the photo.php allows me to select a place with the mouse, but the map on place.php?_action=new&parent_place_id=x doesn't allow me to select a location with the mouse.

CLI looking for album in wrong table

the command line and the error message

liz@banksia:$ zoph -a "home" --photographer "liz billiau" -l "rossetto road" /data/images/uploads/_.JPG
PHP Notice: Constant INI_FILE already defined in /var/www/zoph/config.inc.php on line 33
Person not found: home
liz@banksia:
$ zoph --album "home" --photographer "liz billiau" -l "rossetto road" /data/images/uploads/_.JPG
PHP Notice: Constant INI_FILE already defined in /var/www/zoph/config.inc.php on line 33
Person not found: home

suppress persons in person list

I'd like to be able to suppress some persons on the persons list, because I have no images of them at all, but they are on the database because they are a spouse or parent.
I haven't thought this through, because there would also need to be some place where this flag could be reset if needed.

image maps on photos linked to persons

Sourceforge Req#2212380 By @myselfhimself

Hi,
I'd propose the possibility of adding rectangles on any photo & having them linked to any person's page from the database. In the zoph interface this would be mean having some image map editor, that would be inserted for instance on the photo editing page.

The database would store for each photo : if it has an image map, where the rectangles' corners points are, as well as for each rectangle the id of a person from the people table.
On the viewing/user side, clicking on some photo's image map rectangle would raise a popup containing the page of the person in the rectangle our would open that person's page in place of the current page...

Given that Zoph is under GPL, it would be nice to have some almost ready image map editor application in the same or a close license.
And that is the case ; Adam Maschek and other people have developped such an editor at http://www.maschek.hu/imagemap under GPL.

I would propose that the image map editor be integrated into the photo.php page and an field be added in the mysql db's people table (I have not explored the db yet but I expect therei's such a table).
The field that would be added in the DB could contain : values of rectangle's corner with corresponding person id.

I'm volunteering for making that as well you (submitting patches for the beginning).

Jonathan

Subgroupings of 'persons'

I'd like to suggest subgroupings of persons
which I might make
Family
Friends
Work Colleagues
because as the number of persons expands, the list becomes difficult to manage.

Cli non-functional the second

Hello,
I upgraded to zoph 0.9.0.1 and would now import photos using the new cli-importer with this command:

zoph --verbose --path "2011/2011-Dez-Heiligabend/" --photographer "Ulrich Wiederhold" --location "Brühl" --category "Familie,Weihnachten" --album "Heiligabend 2011" /Volumes/daten/Bilder_Fotos_fertig_für_zoph_11092013/2011-Dez-Heiligabend_Teil_2_zum_Ergänzen/2011-Dez-Heiligabend-*

Getting this error:

PHP Notice: Constant INI_FILE already defined in /Users/fzzgrr/Sites/zoph/php/config.inc.php on line 24
PHP Notice: Undefined offset: 0 in /Users/fzzgrr/Sites/zoph/php/user.inc.php on line 302
Fatal Error: tuff is not a valid user

I am logged in as user "tuff". Do I need to specify the user to use with zoph-command separately? The login via browser works fine. For mysql I use zoph_rw, this works fine.

Any Ideas?
Many thanks
Uli

Automatically grant access to sub-albums

Sourceforge Req#2890269 by Peter Farr
When albums are arranged in a hierarchy it would be nice to be able to grant access to all sub-albums when granting access to a higher level album. For example, in the following structure:
Album1
Album1A
Album1Aa
Album1B
Album2

I would like to grant access to Album1, Album1a and Album1b in one shot. I can think of two ways to accomplish this:

  1. On the Add/Edit Group page, add another column beside "Access Level" and "Writable" with a checkbox to control this behaviour.
  2. In config_inc.php have a variable that would turn this behaviour on globally

At the same time there should be the ability to override this behaviour for specific albums. In the example above, I could override access to Album1Aa if I wanted to.

MySQL STRICT mode support

As of MySQL 5.6.8, the default MySQL mode includes STRICT_TRANS_TABLES. This makes MySQL a lot pickier. Several warnings are now errors. This causes some queries that in the past only generated a warning to fail. This includes for example trying to insert 'Yes' in a boolean field. Zoph suffers from some of these queries and this should be investigated and fixed.

Issue #42 is an example of a support request suffering from this problem.

Deleting files from hard drive

I would like to able to actually remove files from the hard drive instead of just marking them 'deleted'. This could be a setting in config which is by default off or simply moving files to a specified 'Trash' folder where I can remove them with a cron job would be nice. Zoph is a photo management system and not a simple web gallery. My photo collection is filled by means of automatic uploads from different devices and from different family members it is naturally full of useless or duplicate photos. I want to be able to sort it out without the photo folder size on my hard drive ballooning out of control.
Yours is the perfect piece of software that lets me manage, tag and make photos searchable with a good acl policy, the only alternative I have found so far could be 'My photo gallery' which is nowhere near the functionality and design offered by zoph.

Zoph needs unittests

Currently, Zoph cannot be automatically tested, making changes riskfull and bugprone.

More differentiation in sizes

Zoph currently has 3 sizes full (original), mid (480px wide) and thumb (120px wide), it should be possible to make more different sizes.

CLI conflicting permissions with web upload

Because I uploaded September's photos through the web interface,
$ ls -la /data/images/2013/09/
[snip]
drwxr-xr-x 16 www-data www-data 4096 Sep 24 13:52 .
drwxrwxrwx 13 liz liz 4096 Nov 24 09:19 ..
drwxr-xr-x 4 www-data www-data 4096 Sep 15 10:43 04
[/snip]

so when I try to upload with the cli I get this error
Could not create directory: /data/images/2013/09/30/

PHP Fatal error: Uncaught exception 'FileDirCreationFailedException' with message 'Could not create directory: /data/images/2013/09/30/

' in /var/www/zoph/util.inc.php:771
Stack trace:
#0 /var/www/zoph/util.inc.php(784): create_dir('/data/images/20...')
#1 /var/www/zoph/photo.inc.php(397): create_dir_recursive('/data/images/20...')
#2 /var/www/zoph/import.inc.php(112): photo->import(Object(file))
#3 /var/www/zoph/cli/cli.inc.php(230): Import::photos(Array, Array)
#4 /var/www/zoph/cli/cli.inc.php(75): cli->doImport()
#5 /usr/bin/zoph(95): cli->run()
#6 /usr/bin/zoph(62): init()
#7 {main}

thrown in /var/www/zoph/util.inc.php on line 771

testing on the shell

$ mkdir /data/images/2013/09/30
mkdir: cannot create directory `/data/images/2013/09/30': Permission denied

I'm thinking we need a more robust ownership and permissions structure so that these methods can be used interchangeably and without me using chmod 777.

APC is deprecated as of PHP 5.4

APC is deprecated as of PHP 5.4. Zoph uses APC to track upload status. As of PHP 5.4 there is session.upload_progress to replace it.

Undefined variables

All undefined variable-warnings should have been removed in v0.9, but there are a few that have been overlooked. This issue will track them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.