Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 20. Apr 2024, 03:32

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 8. Nov 2012, 18:58 
Offline

Joined: 8. Nov 2012, 18:52
Posts: 4
Kann man den Upload für Bilder so einstellen, das alle Bilder, egal ob Hoch- oder Querformat auf die gleiche Höhe getrimmt werden (unter Beibehaltung des Seitenverhältnisses)?

Danke für Tips.


Top
 Profile  
 
PostPosted: 9. Nov 2012, 01:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Beim Upload oder bei der Anzeige in TWG?

Weil in der Anzeige von TWG sollte das sogar default sein.

Gruß,
Michael


Top
 Profile  
 
PostPosted: 9. Nov 2012, 15:05 
Offline

Joined: 8. Nov 2012, 18:52
Posts: 4
Beim Upload:

ich möchte das beim Upload alle Bilder auf die gleiche Höhe getrimmt werden:

es gibt hier einen Ansatz die tfu_helper.php anzupassen:
viewtopic.php?f=13&t=1812&hilit=resize+height

Die vorgeschlagene Lösung funktioniert aber leider nicht. Eventuell liegt es an der Version (das Posting war von 2008)?


Top
 Profile  
 
PostPosted: 9. Nov 2012, 15:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Die Lösung dort macht alle Bilder gleich breit.

Man muss eigentlich nur gar keine Fallunterscheidung zwischen Hoch- und Querformat an der Stelle machen.
Ist eigentlich deutlich einfacher...

Gruß,
Michael


Top
 Profile  
 
PostPosted: 9. Nov 2012, 17:09 
Offline

Joined: 8. Nov 2012, 18:52
Posts: 4
Ja, ich weiss:
für alle die täglich php programmieren ist das natürlich total einfach ;-)

Für die, die nicht die Zeit haben sich in den Code rein zu denken, leider nicht...

Wie müssen denn die entsprechenden Zeilen umgebaut werden?

Danke für Infos.

Grüße - JK


Top
 Profile  
 
PostPosted: 9. Nov 2012, 18:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Ich habs mal für die nächste Version eingebaut...

2.17.1 bring ich bald raus, da ich dort dann mehrfache Empfänger für smpt e-mails unterstütze...

Gruß, Michael


Top
 Profile  
 
PostPosted: 10. Nov 2012, 22:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Wenn du es selbsteinbauen willst:

änder

if ($oldsizex > $oldsizey) { // querformat - this keeps the dimension between horzonal and vertical
$width = $size;
$height = ($width / $oldsizex) * $oldsizey;
} else { // hochformat - this keeps the dimension between horzonal an vertical
$height = $size;
$width = ($height / $oldsizey) * $oldsizex;
}

einfach in

$height = $size;
$width = ($height / $oldsizey) * $oldsizex;

Gruß, Michael


Top
 Profile  
 
PostPosted: 12. Nov 2012, 13:40 
Offline

Joined: 8. Nov 2012, 18:52
Posts: 4
Ganz herzlichen Dank für die schnelle Antwort.

beste Grüße - Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy