Jump to content

Marty Walker

Members
  • Posts

    629
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Marty Walker

  1. I've never had good feedback from any client if I've presented a wireframe. Perhaps it's the kind of clients I have (no offence to them) that can't see past a line-drawing and can only get their heads around what their site would actually look like.

    In the past I've used Keynote to good effect but I'm now using Sketch (OS X) to flesh out a design more fully before handing it over. And that's because I usually need to plant down a design that I've formed in my head first before I lose it.

    • Like 3
  2. Hi totoff,

    I've been using http://www.bittorrent.com/sync for a little while as an alternative to dropbox and google drive. Currently I use to sync my Sites directory between machines. What I like about it is you don't have to have the exact same folder name on both machines. eg:

    Machine 1:Sites can sync to Machine2:Sites backup

    There's no intermediate storage either from what I can see so your machines would need to be on at the same time.

    • Like 1
  3. As they say on television "it's not you, it's me". My memory limit and max_execution_time on MAMP needed boosting.

    With this project I'm hoping to batch import perhaps 350 artists (nearly 4000 images) with Ryan's module so I think I need to work out a way of getting the images smaller beforehand. If I get this job I might need some paid help :)

    Thanks very much for your help Adrian.

    • Like 1
  4. The only change I made was to target the specific page I was having trouble with - I can't load it in the admin. I'm running this site locally too so I don't know if that helps.

    <?
    $cp = $pages->get(1157);
    
    $cp->of(false); // required for a single image field
    foreach($cp->fields as $imagesfield){
    
    if($imagesfield->type == "FieldtypeImage" || $imagesfield->type == "FieldtypeCropImage"){
    
            foreach($cp->$imagesfield as $pagefile){    
    
                $filename = $pagefile->filename; 
                $pagefile2 = null;
    
                if($imagesfield->maxWidth && $pagefile->width > $imagesfield->maxWidth) {
                    $pagefile2 = $pagefile->width($imagesfield->maxWidth); 
                    unlink($pagefile->filename); 
                    rename($pagefile2->filename, $pagefile->filename); 
                    $pagefile->getImageInfo(true); // force it to reload it's dimensions
                }
    
                if($imagesfield->maxHeight && $pagefile->height > $imagesfield->maxHeight) {
                    $pagefile2 = $pagefile->height($imagesfield->maxHeight); 
                    unlink($pagefile->filename); 
                    rename($pagefile2->filename, $pagefile->filename); 
                    $pagefile->getImageInfo(true); 
                } 
            
            }
       }
    }
    ?>
    

    Yes that definately the behaviour I'm looking for. Perhaps it's the CropImage field that the issue. I see you're using the standard image field.

  5. Thanks for your help with this. Just to be sure I've disabled Custom Upload Names for the moment. I'm trying this on a specific problem page but it's only doing the very first image, creating a new one with a suffix of '0x1600' and not changing the actual dimensions.

  6. Hello,

    I'm using Ryan's super-useful Import Pages from CSV to create a number of pages with fields that includes a multiple cropimage field. In my field settings I've set some limitations on the image dimensions. When I do an import those image dimensions aren't respected (understandably) so I'm wondering, is there's a way to use the API to batch resize the images and save over what's there?

    (I'm retrieving each image from a URL so it's not practical to download each one and resize it - there's a few GB of them.)

    Thanks for any help.

  7. @Manol,

    If it was me I'd look at getting a custom module written. I've used something similar for ExpressionEngine which really takes the load off the site - especially when it comes to site backups. The only problem is that it doesn't delete files from S3. I'm not sure if that's a limitation with the plugin or S3, but I know there's a few GB of files up there that aren't being used.

    • Like 1
  8. Got a feeling this is a server issue but I'm getting an error I can't seem to recover from after saving a simple HTML code:

    Method Sanitizer::entities does not exist or is not callable in this context
    

    I can't even load the Hanna Code config screen - even if I try to ununstall/install it again. It hasn't written any files to /site/assets/cache/HannaCode/ either.

    I'm running PW 2.2.9 on PHP version 5.2.17. Stuck! :)

  9. Hi everyone & Ryan,

    I have a selfish request to make. If you're not family with Antti's Fredi module (I'm sure you are) it's a neat front-end way for your site users to edit a page without sending them to pick through the admin.

    But there's a little gap in the functionality that makes it truly useful - for me at least. At the moment it's not possible to reorder images or repeaters through Fredi and have those position changes reflected on the page after a submit.

    So I would like to request, if possible, the core AjaxSave method get some attention to help get Fredi across the line.

  10. I have a 2010 Macbook Pro with 8GB ram hooked up to a Dell 24" screen. I can't stand Apple's mice so I use a Logitech M705. Hanging of the MBP is a 1TB drive just for time machine backups and a 1.5TB 'work' drive. Connected to the Mac Mini is a 1TB LaCie NAS (which has been a pain in the arse). Complicating things I have a synch program that copies directories between al the various drives I have lying about so I have at least three copies of everything.

×
×
  • Create New...