home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1157658" data-attributes="member: 106003"><p>I thought I save resources by caching it, generating this image is quite fast, so I disabled the caching for this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile    :)" loading="lazy" data-shortname=":)" /></p><p></p><p></p><p>This is the comment inside the fuction from MPExtended:</p><p></p><p>Looking at the source it keeps the aspect ration and doesn't exceed the set height or width, but only if borders != stretch. But you use stretch => so the aspect ration is not kept, what makes sense.</p><p></p><p>Sou you would need to use borders=transparent to keep the aspect ration but get the image in the wanted size. MPExt2 will than fill the rest with transparent borders.If you don't want transparent borders you can send borders=FF0000 for red or some other html color <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile    :)" loading="lazy" data-shortname=":)" /> </p><p>I attached an thumbnail with red borders (just to make this visible).</p><p></p><p>Or do you have another idea how to solve this? I use exactly the same function from MPExtended. Just our Source material is different.</p><p></p><p></p><p>I don't think it is that easy:</p><p>Thumnails are not a many to many relations, that means every media item can only have one thumbnail</p><p>[code]MediaItemAspectMetadata.CreateAttributeSpecification("Thumbnail", typeof(byte[]), Cardinality.Inline, false);[/code]</p><p>Second I don't like to store a huge amount of extra data only for one App... And I also think morpheus wouldn't let pass this^^</p><p>But thanks for trying to help <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up    (y)" loading="lazy" data-shortname="(y)" /></p><p></p><p>Other ideas? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile    :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1157658, member: 106003"] I thought I save resources by caching it, generating this image is quite fast, so I disabled the caching for this :) This is the comment inside the fuction from MPExtended: Looking at the source it keeps the aspect ration and doesn't exceed the set height or width, but only if borders != stretch. But you use stretch => so the aspect ration is not kept, what makes sense. Sou you would need to use borders=transparent to keep the aspect ration but get the image in the wanted size. MPExt2 will than fill the rest with transparent borders.If you don't want transparent borders you can send borders=FF0000 for red or some other html color :) I attached an thumbnail with red borders (just to make this visible). Or do you have another idea how to solve this? I use exactly the same function from MPExtended. Just our Source material is different. I don't think it is that easy: Thumnails are not a many to many relations, that means every media item can only have one thumbnail [code]MediaItemAspectMetadata.CreateAttributeSpecification("Thumbnail", typeof(byte[]), Cardinality.Inline, false);[/code] Second I don't like to store a huge amount of extra data only for one App... And I also think morpheus wouldn't let pass this^^ But thanks for trying to help (y) Other ideas? :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
Top
Bottom