Jump to content

Release: Thumbnails


apeisa

Recommended Posts

I quickly tried last night, and there's still some things.

- when I have the crop image field in a tab, and upload an image the layout is messed (tabs overlap title). I can't provide more infos ATM (will make screenshot later, but I'm busy)

- I don't like the thumb links... should be better (more clear) . And is it possible to put them inside the "fieldset"?

I would like if it's something like :

thumbnail - edit"

big - edit

- when there is big images, it's impossible or very akward to use it.

- when I upload (html5) an image, I can't use preview fancybox before it's saved.

Link to comment
Share on other sites

Ok guys, sorry about last version - there was bug in previews that assumed your fieldname was "cropImages"...

This version is actually pretty nice. I commented the modal view out, since it was really annoying with bigger images. You really want all the possible space there. Also added timestamps for image urls in admin to prevent browser cache. It seems to help.

I have few things for the future:

  • Remove thumbnails after actual image is removed
  • Allow resizing thumbnails in your templates.

post-79-132614279962_thumb.gif

Link to comment
Share on other sites

- when I have the crop image field in a tab, and upload an image the layout is messed (tabs overlap title). I can't provide more infos ATM (will make screenshot later, but I'm busy)

I didn't understand this. If this still occurs in latest version, I would really appreciate screenshot or more description about how to produce this one.

- when I upload (html5) an image, I can't use preview fancybox before it's saved.

This is fixed in latest commit, thanks for finding & reporting Soma.

Link to comment
Share on other sites

Thanks for the update! I just trying it out and its awesome! Also the strange messing up is gone now.

Also like how you solved it with the thumb links and the preview is awesome!

I think it's an ok solution to make a popup, and it's well done I think, just the order and preview I still don't like it with big images. What if there would be no preview just the big image and the "crop" button on top left or so? After cropping we already have a preview, and it already can be edited again. I think it's hard to see there's a button on bottom hidden, just thinking.

---

Somehow the crop button is at a strange place for me, is that only my theme? (see screen)

post-1337-132614279969_thumb.jpg

Link to comment
Share on other sites

Thanks for your feedback Soma. Glad it is working! That is default position fur button. It is clumsy, specially if image and thumbnail are large (like in your example).

I have good idea for cropping UI. Description text, cropping button and thumbnail preview toggle on fixed top bar. Optional preview image on top right corner, on top of the original image (depends of course how large original image and preview thumbnail are).

I will implement this during weekend.

Link to comment
Share on other sites

Thank you Apeisa for the infos.

I have another thing we might should look at. There seems to be problems with floats not cleared in the PW admin (default), like I do normally use clearfix class. I've experienced this while creating themes. For example also you redirects module, the buttons overlap the container (form) on bottom. I think there should be some solution to make this working better and consistent. I had to implement a clearfix over script to some containers so I can add inline/floated stuff. I sense that there we will have problem when there's modules and custom theme's that do thing differently. What is everones experience about this?

Link to comment
Share on other sites

I have another thing we might should look at. There seems to be problems with floats not cleared in the PW admin (default), like I do normally use clearfix class. I've experienced this while creating themes. For example also you redirects module, the buttons overlap the container (form) on bottom. I think there should be some solution to make this working better and consistent. I had to implement a clearfix over script to some containers so I can add inline/floated stuff. I sense that there we will have problem when there's modules and custom theme's that do thing differently. What is everones experience about this?

I usually go with just overflow: hidden or auto;

Link to comment
Share on other sites

Damn you browser cache, just realized that this will mess your edit page layout if you do hard refresh :) Will fix this soon. (edit: Same bug that Nico reported on his edit, didn't notice that at the time).

EDIT: Ok, should be good now. I also started working on feature which allows you to crop original image. I got it working, but I need to think it a little bit more. It should remove all thumbnails created for that image (from this module but also from templates) etc... I committed the code still, just commented out the setting for that.

Link to comment
Share on other sites

Great updates Antti. This is looking better than I ever expected.

I did notice one thing when I was playing with it today. If I change the size on a preset it 'forgets' the previously generated thumbs and just reverts to an autocrop. Is that the intended behavior?

Regards

Marty

Link to comment
Share on other sites

Yes. It always does default re-crop if width or height doesn't match. That makes sure that images are always desired size. I could use cropped image as base if new size is smaller, but that could result poor crops also. I don't save cropping propotions anywhere so it is not possible use those propotions and crop again from original.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...