Posts:
3,442
Registered:
18-Oct-2002
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:25
in response to: AndreWolff
|
|
|
Let's hope the plugin is appreciated. I personally think it's better to implement this kind of functionality as an image filter as that removes the manual step of identifying and applying this tool to each panoramic image.
|
|
|
Posts:
3,442
Registered:
18-Oct-2002
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:31
in response to: davidekholm
|
|
|
You asked what changes I made to make it work? I only opened it in Netbeans, moved the Java file to a package using Netbean's refactoring and compiled the project. As you noticed you can either use the .jar or .jaext extension for plugins. It doesn't matter. .jaext has the advantage of painting a jAlbum plugin icon onto the file and allowing installation of the plugin by double clicking it.
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:37
in response to: davidekholm
|
|
|
If this is to become a standard, distributed plugin for core jAlbum, I do rather prefer RobM's version, with the ability to choose height and width settings. I'd set broad limits.
We're thinking of this as a tool for pano's, but there are probably other situations in which you want to specify different image bounds for an image, situations that have nothing to do with pano's. It could be a more general-purpose tool.
|
|
|
Posts:
1,289
Registered:
14-Dec-2007
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:42
in response to: davidekholm
|
|
|
I personally think it's better to implement this kind of functionality as an image filter as that removes the manual step of identifying and applying this tool to each panoramic image.
Yes, I did propose that here, but that is far too complicated for this dummy JAVA programmer!
I am quit happy with the current PanPlugin, which can now be downloaded here.
Once again: thank you very much for your help!
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:43
in response to: davidekholm
|
|
|
.jaext has the advantage of painting a jAlbum plugin icon onto the file and allowing installation of the plugin by double clicking it.
Well, yes and no. I've discovered that if I double-click a .jaext file while jAlbum is not running, it installs the plugin, but then leaves jAlbum running as a background process. It's invisible, but you then can't launch jAlbum. It's necessary to go into the task manager and kill that background process.
It's OK if you double-click the .jaext with jAlbum open.
(And double-clicking a .jaskin file while jAlbum is not running works OK, too.)
|
|
|
Posts:
3,442
Registered:
18-Oct-2002
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:46
in response to: JeffTucker
|
|
|
.jaext has the advantage of painting a jAlbum plugin icon onto the file and allowing installation of the plugin by double clicking it.
Well, yes and no. I've discovered that if I double-click a .jaext file while jAlbum is not running, it installs the plugin, but then leaves jAlbum running as a background process. It's invisible, but you then can't launch jAlbum. It's necessary to go into the task manager and kill that background process.
It's OK if you double-click the .jaext with jAlbum open.
(And double-clicking a .jaskin file while jAlbum is not running works OK, too.)
Thanks for informing about that bug.
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
21 Mar 17, 12:50
in response to: davidekholm
|
|
|
Thanks for informing about that bug.
And believe me, it took me an ungodly long time to figure out what was happening!
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
22 Mar 17, 01:54
in response to: AndreWolff
|
|
|
I have 3 remarks:
1. I think you did give it the wrong extension name: instead of 'Set Slide image size' the title should be 'Set Slide maximum image size' and on the form the text should also be 'Maximum width/height'.
2. It is for me only usefully if it remembers the settings set in the previous slide.
3. Why is the maximum size 10000 and not 30000?
I have made changes to the text.
It now remembers the last used setting and uses that as the default for further images.
The maximum bounds is now set to 30000
Checkboxes added so you can set just one dimension or both.
Updated files in http://jalbum.net/forum/thread.jspa?messageID=315251񌽳
|
|
|
Posts:
1,289
Registered:
14-Dec-2007
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
22 Mar 17, 09:48
in response to: RobM
|
|
|
Excellent Rob, well done!
I hope that David will bundle this in the next version!
One minor point: the plugin still shows the CropFocus icon.
I think you should remove the icon or design a new icon.
I don't understand why some menu items do have icons and others don't have icons!
Thanks for this plugin which can now also easy be used for panorama pictures.
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 00:45
in response to: AndreWolff
|
|
|
One minor point: the plugin still shows the CropFocus icon.
I think you should remove the icon or design a new icon.
I created a new icon but it caused an error (web based svg editor) so it was easier to just remove it. Updated files in the other forum.
|
|
|
Posts:
591
Registered:
30-Aug-2004
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 03:15
in response to: RobM
|
|
|
|
Rob, here are an SVG icon and a PNG icon created with Inkscape.
If either of these are any better maybe I can create one a little closer to what you had in mind (even with a text editor, seeing as SVG is just XML format)?
(I should probably make the rectangle corners more rounded so they look more like Kodak slides )
Edited by: jimberry on 23-Mar-2017 10:15
|
|
|
Posts:
591
Registered:
30-Aug-2004
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 04:05
in response to: jimberry
|
|
|
|
Here is a better SVG created with a text editor.
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 10:02
in response to: jimberry
|
|
|
Rob, here are an SVG icon and a PNG icon created with Inkscape.
If either of these are any better maybe I can create one a little closer to what you had in mind (even with a text editor, seeing as SVG is just XML format)?
Thanks, I didn't want to install Inkscape to make just one icon and my SVG knowledge is less than my Java.
What I thought would be apt was two small blue rectangles (with arrows if they can be seen ) as per the image bounds
|
|
|
Posts:
591
Registered:
30-Aug-2004
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 11:03
in response to: RobM
|
|
|
Thanks, I didn't want to install Inkscape to make just one icon and my SVG knowledge is less than my Java.
If you open my second suggestion (the one created with a text editor) with the text editor of your choice, you might be surprised how readable an SVG can be
What I thought would be apt was two small blue rectangles (with arrows if they can be seen ) as per the image bounds
I wonder if both your suggestion and mine might be indecipherable if scaled down to the size of the icons for the other tools.
Maybe someone can come up with a more suitable design for such a small icon??????????
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Where is the crop focus tool for a thumbnail??
Posted:
23 Mar 17, 22:10
in response to: jimberry
|
|
|
|
Well, it sucks!
I wrote <?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 2500 2500">
<title>Slide Boundsr</title>
<rect x="0" y="77" width="120" height="60" fill="lightblue" stroke="null" />
<text x="0" y="125" font-family="Verdana" font-size="48px" fill="black">←</text>
<text x="74" y="125" font-family="Verdana" font-size="48px" fill="black">→</text>
<rect x="140" y="40" width="60" height="120" fill="lightblue" stroke="null" />
<text x="155" y="85" font-family="Verdana" font-size="48px" fill="black">↑</text>
<text x="155" y="153" font-family="Verdana" font-size="48px" fill="black">↓</text>
</svg>
Which looks like the attached screen grab but produces this error Mar 23, 2017 9:05:37 PM com.kitfox.svg.SVGUniverse getElement
WARNING: Could not parse path svgSalamander:/null
java.net.MalformedURLException: unknown protocol: svgsalamander
at java.net.URL.<init>(URL.java:600)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at java.net.URI.toURL(URI.java:1089)
at com.kitfox.svg.SVGUniverse.getElement(SVGUniverse.java:342)
at com.kitfox.svg.SVGUniverse.getElement(SVGUniverse.java:307)
at com.kitfox.svg.ShapeElement.renderShape(ShapeElement.java:206)
at com.kitfox.svg.Rect.render(Rect.java:208)
at com.kitfox.svg.Group.render(Group.java:205)
at com.kitfox.svg.SVGRoot.renderToViewport(SVGRoot.java:329)
at com.kitfox.svg.SVGDiagram.render(SVGDiagram.java:105)
at com.kitfox.svg.app.beans.SVGIcon.paintIcon(SVGIcon.java:280)
at com.kitfox.svg.app.beans.SVGIcon.paintIcon(SVGIcon.java:171)
at se.datadosen.component.DeferredSVGIcon.paintIcon(DeferredSVGIcon.java:84)
at com.apple.laf.AquaMenuPainter.paintIcon(AquaMenuPainter.java:395)
at com.apple.laf.AquaMenuPainter.paintMenuItem(AquaMenuPainter.java:243)
at com.apple.laf.AquaMenuItemUI.paintMenuItem(AquaMenuItemUI.java:103)
at javax.swing.plaf.basic.BasicMenuItemUI.paint(BasicMenuItemUI.java:475)
at com.apple.laf.AquaMenuItemUI.update(AquaMenuItemUI.java:119)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent.paint(JComponent.java:1042)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
at java.awt.Container.paint(Container.java:1975)
at java.awt.Window.paint(Window.java:3904)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
This is despite https://validator.nu showing the svg validates without errors.
Until this error is resolved I'm keeping clear of svg icons
PS, someone has posted about this error on Adobe website sometime ago, no response.
Edited by: RobM on 23-Mar-2017 21:15
If I change the stroke from null to none there is no error but no icon either
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|