Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Qube 74 posts 116 karma points
    May 16, 2010 @ 08:26
    Qube
    2

    Bug - Images Imported as Files

    Firstly, GREAT umbraco extension. I implement it as a way to import a huge amount of small files, not a small amount of huge ones - which is a bit contrary to it's intention, but it works well. Specifically, I've added it to a photography website where the owner uploads whole galleries via FTP, then imports the images to a new media folder all at once. Huge time saver!

    Which leads me to the bug: All pictures are imported as media files, not images. I've found the problem in the source ("extension" contains a dot, "imageFileExtensions" doesn't), and recompiled it for my purposes. Hopefully you find it useful. I just changed line 158 of ImportMedia.aspx.cs from:

    string extension = Path.GetExtension(sourceFile);

    To:

    string extension = Path.GetExtension(sourceFile).TrimStart('.');
  • Simon Dingley 1474 posts 3431 karma points c-trib
    May 17, 2010 @ 08:08
    Simon Dingley
    0

    Thanks Ben, Did you want to submit it as a patch to the repository?

    Please vote for the project if you like it, it helps others to judge how useful it is.

    Thanks, Simon

  • Qube 74 posts 116 karma points
    May 23, 2010 @ 02:29
    Qube
    0

    Hi Simon. Sorry for the slow reply. Yes, I'll submit the the patch, great idea.

    I've since added auto thumbnail generation. Unfortunately the function umbraco uses to create thumbnails is private, so I had to copy and paste it from their upload control. I'll submit that too if I get the time.

    Finally, I'm going to add an option to import folders rather than files. Will make this photography site much easier to manage when they upload 100+ image galleries.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jun 01, 2010 @ 10:01
    Richard Soeteman
    1

    Hi Ben did you get any luck importing the folder structure, I'm working on this right now. Since my customer is in panic import 14.6 GB of photo's Excellent Package Simon.

    Cheers,

    Richard

  • Qube 74 posts 116 karma points
    Jun 08, 2010 @ 05:20
    Qube
    0

    Slow reply, sorry Richard.

    Short answer is yes. The basic bugs above have been submitted as a patch to Codeplex here, but I have a (pretty heavily) modified version of ImportMedia running at this end which has thumbnail generation and folder selection. It doesn't work recursively at this point though (that is, it wont add child folders or their contents).

    If you'd like all the code, just contact me via Codeplex. My username is Qube.

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Jun 09, 2010 @ 11:27
    Simon Dingley
    0

    Hi Guys,

    I have contributions from both of you that I am going to be trying to look at this week and that will hopefully then(work permitting) allow a new release of the package. I will make sure I credit your contributions on the package details page.

    Cheers, Simon

  • Rich Green 2246 posts 4008 karma points
    Sep 07, 2010 @ 10:04
    Rich Green
    0

    Hi Guys,

    Firstly, thanks Simon for a great package.

    Is there any progress on importing folders & files and keeping the Folders structure in place?

    I'd be very happy to test a beta example.

    Many thanks

    Rich 

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 08, 2010 @ 22:54
    Simon Dingley
    0

    Hi Rich,

    What version of Umbraco are you looking to use it in? I will try and put aside some time tomorrow to get this outas there are also updates needed to other packages I have also developed.

    I am now subscribed to this so hopefully I won't miss any further messages! 

    Simon

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 09, 2010 @ 14:55
    Simon Dingley
    0

    Looking good for a new release today if you don't need support for 4.5+.

  • Rich Green 2246 posts 4008 karma points
    Sep 09, 2010 @ 15:09
    Rich Green
    0

    That would be amazing Simon!

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 09, 2010 @ 21:56
    Simon Dingley
    0

    I have just uploaded a new package file for testing(v1.2), use on production sites at your own risk! Please feedback any problems through this forum. I will be trying to get thumbnails working properly tomorrow and get the package ready for release.

  • Qube 74 posts 116 karma points
    Sep 10, 2010 @ 00:32
    Qube
    0

    Glad to see this great project is still active!

    Look forward to a 4.5 compatible version in the future * nudge nudge wink wink * :D

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2010 @ 12:19
    Rich Green
    0

    Hey Simon,

    The package worked great thank you! Imported over 100 images and folder structure kept in place.

    One small problem, though I don't know if it's an API problem or directly related to your package.

    When you click on a folder with images in it we do not get the thumbnail previews as you do with locally uploaded media, do you know if this is an Umbraco issue?

    Many thanks again for the great package.

    Rich

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2010 @ 12:29
    Rich Green
    0

    Hi again,

    It seems likes Import Media doesn't create the thumbnails (as discussed in this thread previously), was this planned to be part of this version or should I look at amending the source code?

    Many thanks

    Rich

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 13, 2010 @ 23:09
    Simon Dingley
    0

    Hi Rich,

    As per my post on the previous page thumbnails are not working in that version. I've been tied up with client work which pays the bills so has to come first however I will try my best (work permitting) to get it sorted as soon as I can.

    Sorry for the delay.

    Simon

  • Rich Green 2246 posts 4008 karma points
    Sep 14, 2010 @ 10:44
    Rich Green
    0

    Hey Simon,

    Many thanks, no need to apologise! It's a fantastic package and a life saver for my project.

    Is the source available? Maybe I can have a look at helping out with the thumbnail code.

    Cheers

    Rich

     

     

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 14, 2010 @ 10:51
    Simon Dingley
    0

    Yep, it's on Codeplex, there should be a link from the Project page although I am considering moving it out of its current project because it just doesn't seem to work for me having it part of the Umbraco extensions project, I think it should probably have its own repo. The thumbnail code is in the source just commented out as it didn't appear to be working when I tested it and as I was trying to rush it out I removed the feature temporarily. If you want to be a part of the project it is open for collaboration http://our.umbraco.org/member/send-collab-request?id=7464 :)

    Cheers, Simon

Please Sign in or register to post replies

Write your reply to:

Draft